SyTen

◆ size()

template<Rank rank, typename Scalar = CDef>
Index syten::SparseTensor< rank, Scalar >::size ( ) const
inline

Returns the number of nonzero elements in the tensor.

References syten::SparseTensor< rank, Scalar >::FullData::elements, syten::SparseTensor< rank, Scalar >::fullData, syten::SparseTensor< rank, Scalar >::singleton, and syten::SparseTensor< rank, Scalar >::singletonValue.

Referenced by syten::avgAbs(), syten::elem_abs(), syten::SparseTensor< rank, Scalar >::operator==(), syten::prodS(), and syten::SparseTensor< rank, Scalar >::reserve().

+ Here is the caller graph for this function: