SyTen

◆ avgAbs() [2/4]

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

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

References abs(), std::make_pair(), and syten::SparseTensor< rank, Scalar >::size().

+ Here is the call graph for this function: