Permutation matrix. More...
Public Types | |
typedef const PermutationMatrix & | Nested |
![]() | |
typedef Eigen::Index | Index |
The interface type of indices. More... | |
typedef internal::traits< Derived >::StorageKind | StorageKind |
Public Member Functions | |
IndicesType & | indices () |
const IndicesType & | indices () const |
template<typename Other > | |
PermutationMatrix & | operator= (const PermutationBase< Other > &other) |
template<typename Other > | |
PermutationMatrix & | operator= (const TranspositionsBase< Other > &tr) |
PermutationMatrix () | |
template<typename Other > | |
PermutationMatrix (const MatrixBase< Other > &indices) | |
template<typename OtherDerived > | |
PermutationMatrix (const PermutationBase< OtherDerived > &other) | |
template<typename Other > | |
PermutationMatrix (const TranspositionsBase< Other > &tr) | |
PermutationMatrix (Index size) | |
![]() | |
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, StorageIndex_ > & | applyTranspositionOnTheLeft (Index i, Index j) |
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, StorageIndex_ > & | applyTranspositionOnTheRight (Index i, Index j) |
Index | cols () const |
Index | determinant () const |
IndicesType & | indices () |
const IndicesType & | indices () const |
InverseReturnType | inverse () const |
PlainPermutationType | operator* (const InverseImpl< Other, PermutationStorage > &other) const |
PlainPermutationType | operator* (const PermutationBase< Other > &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 |
![]() | |
template<typename Dest > | |
void | addTo (Dest &dst) const |
template<typename Dest > | |
void | applyThisOnTheLeft (Dest &dst) const |
template<typename Dest > | |
void | applyThisOnTheRight (Dest &dst) const |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
Derived & | const_cast_derived () const |
const Derived & | const_derived () const |
Derived & | derived () |
const Derived & | derived () const |
template<typename Dest > | |
void | evalTo (Dest &dst) const |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
template<typename Dest > | |
void | subTo (Dest &dst) const |
Protected Attributes | |
IndicesType | m_indices |
Private Types | |
typedef PermutationBase< PermutationMatrix > | Base |
typedef internal::traits< PermutationMatrix > | Traits |
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.
Definition at line 299 of file PermutationMatrix.h.
|
private |
Definition at line 301 of file PermutationMatrix.h.
typedef const PermutationMatrix& Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, StorageIndex_ >::Nested |
Definition at line 305 of file PermutationMatrix.h.
|
private |
Definition at line 302 of file PermutationMatrix.h.
|
inline |
Definition at line 312 of file PermutationMatrix.h.
|
inlineexplicit |
Constructs an uninitialized permutation matrix of given size.
Definition at line 317 of file PermutationMatrix.h.
|
inline |
|
inlineexplicit |
Generic constructor from expression of the indices. The indices array has the meaning that the permutations sends each integer i to indices[i].
Definition at line 335 of file PermutationMatrix.h.
|
inlineexplicit |
Convert the Transpositions tr to a permutation matrix
Definition at line 340 of file PermutationMatrix.h.
|
inline |
Definition at line 364 of file PermutationMatrix.h.
|
inline |
|
inline |
|
inline |
Assignment from the Transpositions tr
Definition at line 356 of file PermutationMatrix.h.
|
protected |
Definition at line 389 of file PermutationMatrix.h.