SyTen

◆ reduce()

template<Rank rank, typename Scalar = CDef>
void syten::SparseTensor< rank, Scalar >::reduce ( )
inline

Reduces the number of data.first by dropping zero entries.

References syten::SparseTensor< rank, Scalar >::begin(), syten::SparseTensor< rank, Scalar >::FullData::elements, syten::SparseTensor< rank, Scalar >::end(), syten::SparseTensor< rank, Scalar >::fullData, and syten::SparseTensor< rank, Scalar >::singleton.

Referenced by syten::SparseTensor< rank, Scalar >::operator+=(), and syten::SparseTensor< rank, Scalar >::operator-=().

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