SyTen

◆ invertDiagonal() [2/3]

template<typename Scalar >
void syten::invertDiagonal ( SparseTensor< 2, Scalar > &  a)
inline

Inverts the diagonal data.first of a square matrix in place, leaving zeros untouched.

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

+ Here is the call graph for this function: