SyTen

◆ normSqd() [3/3]

template<Rank rank>
SRDef syten::normSqd ( Tensor< rank > const &  a,
SourceLocation  location = SourceLocation::current() 
)
inline

Calculates the squared norm of a tensor as the scalar product with itself.

References abs(), imag(), real(), SYTEN_ASSERT_DEBUG, SYTEN_DEBUG_THRESHOLD, and syten::YesNo< struct _prod_conj >::y().

+ Here is the call graph for this function: