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

Sort the columns of a Matrix.

This function returns a copy of M, with each column sorted in ascending order.

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

References scythe::Matrix< T_type, ORDER, STYLE >::begin(), scythe::Matrix_base< ORDER, STYLE >::cols(), scythe::Matrix< T_type, ORDER, STYLE >::end(), and sort().