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

Calculate the rank-order of each element in a Matrix.

This function calculates the rank-order of each element in a Matrix, returning a Matrix in which the i'th element indicates the order position of the i'th element of M. The returned Matrix contains unsigned integers.

Parameters:
MA column vector.
Exceptions:
scythe_alloc_error(Level 1)

References scythe::Matrix< T_type, ORDER, STYLE >::begin_f(), scythe::Matrix_base< ORDER, STYLE >::cols(), scythe::Matrix< T_type, ORDER, STYLE >::end_f(), and scythe::Matrix_base< ORDER, STYLE >::rows().

Referenced by eigen().