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

Find unique elements in a Matrix.

This function identifies all of the unique elements in a Matrix, and returns them in a sorted row vector.

Parameters:
MThe Matrix to search.
See also:
selif(const Matrix<T>& M, const Matrix<bool>& e)
Exceptions:
scythe_alloc_error(Level 1)

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