|
inline |
Returns element at the specified coordinate by value or 0.
Use this if you have a non-const SparseTensor; using operator[] would cause you to insert zero values on access.
References syten::SparseTensor< rank, Scalar >::FullData::dims, syten::SparseTensor< rank, Scalar >::FullData::elements, syten::SparseTensor< rank, Scalar >::fullData, syten::rank(), syten::SparseTensor< rank, Scalar >::singleton, syten::SparseTensor< rank, Scalar >::singletonValue, SYTEN_ASSERT_DEBUG, and syten::SparseTensor< rank, Scalar >::zero.
Here is the call graph for this function: