SyTen

◆ identity() [2/2]

template<Rank rank, typename Scalar = SDef>
auto const & syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >::identity ( ) const
inline

If the stored dense tensor is an identity dense tensor, returns a constant reference to it, otherwise terminates.

References syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >::storage, SYTEN_ASSERT_MSG, SYTEN_SINGLE_ARG, and syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >::translate_index().

+ Here is the call graph for this function: