|
inline |
Returns a reference to the element at the specified coordinate.
If no element is stored there yet, create a zero-element and return that. If you want to write to the element, use this.
References syten::SparseTensor< rank, Scalar >::FullData::dims, syten::SparseTensor< rank, Scalar >::FullData::elements, syten::SparseTensor< rank, Scalar >::fullData, std::make_pair(), syten::SparseTensor< rank, Scalar >::normSquaredVld, syten::rank(), syten::SparseTensor< rank, Scalar >::singleton, syten::SparseTensor< rank, Scalar >::singletonValue, SYTEN_ASSERT_DEBUG, and syten::SparseTensor< rank, Scalar >::zero.