Closed Makman2 closed 8 years ago
Boost actually has something like this implemented as a matrix: http://www.boost.org/doc/libs/1_46_0/libs/numeric/ublas/doc/html/classboost_1_1numeric_1_1ublas_1_1permutation__matrix.html The transformation can directly use this class.
The boost version does not inherit everything from matrix
, so need to implement everything manually.
Permutes vector entries.