![]() |
Eigen
3.3.4
|
Base class for permutations.
| Derived | the derived class |
This class is the base class for all expressions representing a permutation matrix, internally stored as a vector of integers. The convention followed here is that if
is a permutation, the corresponding permutation matrix
is such that if
is the canonical basis, we have:
This convention ensures that for any two permutations
, we have:
Permutation matrices are square and invertible.
Notice that in addition to the member functions and operators listed here, there also are non-member operator* to multiply any kind of permutation object with any kind of matrix expression (MatrixBase) on either side.
Inheritance diagram for Eigen::PermutationBase< Derived >:Public Member Functions | |
| Derived & | applyTranspositionOnTheLeft (Index i, Index j) |
| Derived & | applyTranspositionOnTheRight (Index i, Index j) |
| Index | cols () const |
| Index | determinant () const |
| const IndicesType & | indices () const |
| IndicesType & | indices () |
| InverseReturnType | inverse () const |
| template<typename Other > | |
| PlainPermutationType | operator* (const PermutationBase< Other > &other) const |
| template<typename Other > | |
| PlainPermutationType | operator* (const InverseImpl< Other, PermutationStorage > &other) const |
| template<typename OtherDerived > | |
| Derived & | operator= (const PermutationBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | 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 |
Public Member Functions inherited from Eigen::EigenBase< Derived > | |
| Index | cols () const |
| Derived & | derived () |
| const Derived & | derived () const |
| Index | rows () const |
| Index | size () const |
Friends | |
| template<typename Other > | |
| PlainPermutationType | operator* (const InverseImpl< Other, PermutationStorage > &other, const PermutationBase &perm) |
Additional Inherited Members | |
Public Types inherited from Eigen::EigenBase< Derived > | |
| typedef Eigen::Index | Index |
| The interface type of indices. More... | |
|
inline |
Multiplies *this by the transposition
on the left.
|
inline |
Multiplies *this by the transposition
on the right.
This is a fast operation, it only consists in swapping two indices.
|
inline |
|
inline |
This function is O(n) procedure allocating a buffer of n booleans.
|
inline |
const version of indices().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Copies the other permutation into *this
|
inline |
Assignment from the Transpositions tr
|
inline |
Resizes to given size.
|
inline |
|
inline |
Sets *this to be the identity permutation matrix
|
inline |
Sets *this to be the identity permutation matrix of given size.
|
inline |
|
inline |
|
inline |
|
friend |