SyTen

◆ identity() [1/2]

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

If the stored dense tensor is an identity dense tensor, returns a 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: