SyTen

◆ clear()

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

Deletes all entries in the tensor, sets it to zero.

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

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

+ Here is the caller graph for this function: