Processing math: 100%
SyTen
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ makeIdentity() [3/4]

template<typename Scalar >
void syten::makeIdentity ( DenseTensor< 4, Scalar > &  a)
inline

Makes a rank-4 tensor a doubled identity tensor, A_{ijkl} = 1 \mathrm{\; if\; } i \equiv j \wedge k \equiv l \mathrm{\; else\; } 0 .

References syten::DenseTensor< rank, Scalar >::dim(), and SYTEN_ASSERT_DEBUG.

+ Here is the call graph for this function: