|
inline |
Checks if two tensors are parallel, i.e. \( a_i = c \; b_i \quad \forall i \).
a | first tensor |
b | second tensor |
The second tensor multiplied by \( c \) will give the first tensor if the two tensors are parallel.
References syten::SparseTensor< rank, Scalar >::dim(), syten::SparseTensor< rank, Scalar >::isSingleton(), std::make_tuple(), SYTEN_ASSERT, and syten::SparseTensor< rank, Scalar >::valSingleton().