Scythe-1.0.3
template<matrix_order SORT_ORDER, matrix_order RO, matrix_style RS, typename T , matrix_order PO, matrix_style PS>
Matrix<T, RO, RS> scythe::sort ( const Matrix< T, PO, PS > &  M)

Sort a Matrix.

This function returns a copy of M, sorted in ascending order. The sorting order is determined by the template parameter SORT_ORDER or, by default, to matrix_order of M.

Parameters:
MThe Matrix to sort.
See also:
sortc
Exceptions:
scythe_alloc_error(Level 1)

Referenced by median(), mode(), and sortc().