SyTen

◆ avgAbs() [1/4]

template<Rank rank, typename Scalar >
std::pair<std::size_t, typename ScalarBase<Scalar>::type> syten::avgAbs ( DenseTensor< rank, Scalar > const &  a)
inline

Returns the sum of the absolute values and the number of non-zero entries in the tensor.

References abs(), std::make_pair(), nz_abs(), overThreshold(), and SYTEN_SMALL_THRESHOLD.

Referenced by avgAbs(), print_avg_abs(), syten::MPS::BasisTransformation::ModeTransformation::transform_accepted(), and syten::MPS::BasisTransformation::ModeTransformation::transform_accepted_global().

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