SyTen

◆ compare_residual()

template<typename Scalar >
bool syten::Delinearise::compare_residual ( DenseTensor< 1, Scalar > const &  original,
DenseTensor< 1, Scalar > const &  calculated,
DenseTensor< 1, Scalar > const &  threshold,
SRDef  factor 
)

Returns true if original[i] ~ calculated[i] to within threshold[i] * factor.

References syten::abs(), syten::DenseTensor< rank, Scalar >::dim(), syten::overThreshold(), and syten::Caching::threshold.

Referenced by cols_only().

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