SyTen

◆ trace() [2/5]

template<typename Scalar >
Scalar syten::trace ( SparseTensor< 2, Scalar > const &  a)
inline

Trace of a sparse matrix.

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

+ Here is the call graph for this function: