SyTen

◆ permute()

template<typename Scalar >
DenseTensor< 2, Scalar > syten::Delinearise::permute ( std::vector< DenseTensor< 1, Scalar > > &  columns,
std::vector< DenseTensor< 1, Scalar > > &  thresh 
)
inline

Permutes columns in columns and thresh such that the columns with maximal zeroness score are in the front.

Returns a permutation matrix to be multiplied from the right into the permuted matrix to restore the original matrix.

References std::vector< T >::begin(), calculate_scores(), std::vector< T >::end(), std::move(), std::vector< T >::size(), and std::stable_sort().

Referenced by cols_only().

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