![]() |
CMR
1.3.0
|
#include <matrix_reorder.hpp>
Public Member Functions | |
| matrix_reorder_row_less (const MatrixType &matrix, size_t column_first, size_t column_beyond, Less less) | |
| bool | operator() (size_t a, size_t b) |
Public Attributes | |
| const MatrixType & | matrix_ |
| size_t | column_first_ |
| size_t | column_beyond_ |
| Less | less_ |
A functor to compare rows of a matrix lexicographically.
|
inline |
Creates the functor.
| matrix | The given matrix |
| column_first | First column to compare at |
| column_beyond | Beyond column to compare at |
| less | Used functor to compare elements |
|
inline |
Applies the functor.
| a | First row index |
| b | Second row index |
| size_t tu::matrix_reorder_row_less< MatrixType, Less >::column_beyond_ |
| size_t tu::matrix_reorder_row_less< MatrixType, Less >::column_first_ |
| Less tu::matrix_reorder_row_less< MatrixType, Less >::less_ |
| const MatrixType& tu::matrix_reorder_row_less< MatrixType, Less >::matrix_ |