SyTen

◆ max() [2/4]

template<Rank rank, typename Scalar >
ScalarBase< Scalar >::type syten::max ( SparseTensor< rank, Scalar > const &  a)
inline

Returns the element with the greatest magnitude in the sparse tensor.

Remarks
with C++17 support, we can rewrite this to use max_element.

References abs(), syten::SparseTensor< rank, Scalar >::isSingleton(), and syten::SparseTensor< rank, Scalar >::singletonValue.

+ Here is the call graph for this function: