![]() |
Eigen
3.3.4
|
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. |
_StorageIndex | the integer type of the indices |
This class represents a permutation matrix, internally stored as a vector of integers.
Public Member Functions | |
const IndicesType & | indices () const |
IndicesType & | indices () |
template<typename Other > | |
PermutationMatrix & | operator= (const PermutationBase< Other > &other) |
template<typename Other > | |
PermutationMatrix & | operator= (const TranspositionsBase< Other > &tr) |
PermutationMatrix (Index size) | |
template<typename OtherDerived > | |
PermutationMatrix (const PermutationBase< OtherDerived > &other) | |
template<typename Other > | |
PermutationMatrix (const MatrixBase< Other > &indices) | |
template<typename Other > | |
PermutationMatrix (const TranspositionsBase< Other > &tr) | |
![]() | |
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & | applyTranspositionOnTheLeft (Index i, Index j) |
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & | applyTranspositionOnTheRight (Index i, Index j) |
Index | cols () const |
Index | determinant () const |
const IndicesType & | indices () const |
IndicesType & | indices () |
InverseReturnType | inverse () const |
PlainPermutationType | operator* (const PermutationBase< Other > &other) const |
PlainPermutationType | operator* (const InverseImpl< Other, PermutationStorage > &other) const |
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & | operator= (const PermutationBase< OtherDerived > &other) |
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & | operator= (const TranspositionsBase< OtherDerived > &tr) |
void | resize (Index newSize) |
Index | rows () const |
void | setIdentity () |
void | setIdentity (Index newSize) |
Index | size () const |
DenseMatrixType | toDenseMatrix () const |
InverseReturnType | transpose () const |
![]() | |
Index | cols () const |
Derived & | derived () |
const Derived & | derived () const |
Index | rows () const |
Index | size () const |
Additional Inherited Members | |
![]() | |
typedef Eigen::Index | Index |
The interface type of indices. More... | |
|
inlineexplicit |
Constructs an uninitialized permutation matrix of given size.
|
inline |
Copy constructor.
|
inlineexplicit |
Generic constructor from expression of the indices. The indices array has the meaning that the permutations sends each integer i to indices[i].
|
inlineexplicit |
Convert the Transpositions tr to a permutation matrix
|
inline |
const version of indices().
|
inline |
|
inline |
Copies the other permutation into *this
|
inline |
Assignment from the Transpositions tr