SyTen

◆ sort_rows_infnorm()

template<typename Scalar >
void syten::sort_rows_infnorm ( DenseTensor< 2, Scalar > &  a,
DenseTensor< 2, Scalar > &  p 
)

Sorts the rows of a in-place such that the row with the largest absolute value comes first, then the row with the second-largest absolute value etc.

p is set to the permutation matrix required to construct the original a as prodD<1>(p, a, {-1, 1}, {1, -2}).

References abs(), syten::DenseTensor< rank, Scalar >::dim(), syten::DenseTensor< rank, Scalar >::getDims(), std::max(), std::move(), syten::Deparallelise::rows(), and std::sort().

+ Here is the call graph for this function: