Permutation matrix. More...
Public Member Functions | |
IndicesType & | indices () |
const IndicesType & | indices () const |
template<typename Other > | |
PermutationMatrix & | operator= (const TranspositionsBase< Other > &tr) |
template<typename Other > | |
PermutationMatrix & | operator= (const PermutationBase< Other > &other) |
template<typename Other > | |
PermutationMatrix (const TranspositionsBase< Other > &tr) | |
template<typename Other > | |
PermutationMatrix (const MatrixBase< Other > &indices) | |
template<typename OtherDerived > | |
PermutationMatrix (const PermutationBase< OtherDerived > &other) | |
PermutationMatrix (int size) |
Permutation matrix.
SizeAtCompileTime | the number of rows/cols, or Dynamic | |
MaxSizeAtCompileTime | the maximum number of rows/cols, or Dynamic. This optional parameter defaults to SizeAtCompileTime. Most of the time, you should not have to specify it. | |
IndexType | the interger type of the indices |
This class represents a permutation matrix, internally stored as a vector of integers.
PermutationMatrix | ( | int | size | ) | [inline] |
Constructs an uninitialized permutation matrix of given size.
PermutationMatrix | ( | const PermutationBase< OtherDerived > & | other | ) | [inline] |
Copy constructor.
PermutationMatrix | ( | const MatrixBase< Other > & | indices | ) | [inline, explicit] |
Generic constructor from expression of the indices. The indices array has the meaning that the permutations sends each integer i to indices[i].
PermutationMatrix | ( | const TranspositionsBase< Other > & | tr | ) | [inline, explicit] |
Convert the Transpositions tr to a permutation matrix
IndicesType& indices | ( | ) | [inline] |
Reimplemented from PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >.
const IndicesType& indices | ( | ) | const [inline] |
const version of indices().
Reimplemented from PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >.
PermutationMatrix& operator= | ( | const TranspositionsBase< Other > & | tr | ) | [inline] |
Assignment from the Transpositions tr
PermutationMatrix& operator= | ( | const PermutationBase< Other > & | other | ) | [inline] |
Copies the other permutation into *this