SyTen

◆ elem_abs() [1/2]

template<Rank rank, typename Scalar , typename RetType = typename ScalarBase<Scalar>::type>
DenseTensor<rank, RetType> syten::elem_abs ( DenseTensor< rank, Scalar > const &  a)
inline

Returns a dense tensor of the real base type with each element equal to the absolute value of that element in a: \( r_{ij} = |a_{ij}| \).

Remarks
Would be better to put this into dense_convenience.h, but prodD needs it below.

References abs(), syten::DenseTensor< rank, Scalar >::getDims(), and syten::DenseTensor< rank, Scalar >::size().

Referenced by syten::Delinearise::cols_only().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: