SyTen

◆ isParallel_highPrec()

template<typename Scalar >
std::pair<ParallelKind, Scalar> syten::isParallel_highPrec ( DenseTensor< 1, Scalar > const &  a,
DenseTensor< 1, Scalar > const &  b 
)
inline

Checks if two vectors are parallel with very high sensitivity and requiring the factor to be of magnitude between 1e-3 and 1e3.

See test/highprec_parallel.cpp for test cases.

Parameters
afirst vector
bsecond vector
Returns
a pair {ParallelKind, c}.

The second tensor multiplied by \( c \) will give the first tensor if the two tensors are parallel.

References syten::DenseTensor< rank, Scalar >::dim(), and SYTEN_ASSERT.

Referenced by syten::Deparallelise::cols().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: