SyTen

◆ absSqd() [2/3]

template<Rank rank, typename Scalar , typename RetScalar = Scalar>
ScalarBase<RetScalar>::type syten::absSqd ( SparseTensor< rank, Scalar > const &  a)
inline

Squared norm of a sparse tensor, i.e. the squared 2-norm were the tensor reshaped into a vector.