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().