NDDEM
|
Base class for permutations. More...
#include <PermutationMatrix.h>
Public Types | |
enum | { Flags = Traits::Flags , RowsAtCompileTime = Traits::RowsAtCompileTime , ColsAtCompileTime = Traits::ColsAtCompileTime , MaxRowsAtCompileTime = Traits::MaxRowsAtCompileTime , MaxColsAtCompileTime = Traits::MaxColsAtCompileTime } |
typedef Traits::IndicesType | IndicesType |
typedef Traits::StorageIndex | StorageIndex |
typedef Matrix< StorageIndex, RowsAtCompileTime, ColsAtCompileTime, 0, MaxRowsAtCompileTime, MaxColsAtCompileTime > | DenseMatrixType |
typedef PermutationMatrix< IndicesType::SizeAtCompileTime, IndicesType::MaxSizeAtCompileTime, StorageIndex > | PlainPermutationType |
typedef PlainPermutationType | PlainObject |
typedef Inverse< Derived > | InverseReturnType |
typedef void | Scalar |
![]() | |
typedef Eigen::Index | Index |
The interface type of indices. More... | |
typedef internal::traits< Derived >::StorageKind | StorageKind |
Protected Member Functions | |
template<typename OtherDerived > | |
void | assignTranspose (const PermutationBase< OtherDerived > &other) |
template<typename Lhs , typename Rhs > | |
void | assignProduct (const Lhs &lhs, const Rhs &rhs) |
Private Types | |
typedef internal::traits< Derived > | Traits |
typedef EigenBase< Derived > | Base |
Friends | |
template<typename Other > | |
PlainPermutationType | operator* (const InverseImpl< Other, PermutationStorage > &other, const PermutationBase &perm) |
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.
|
private |
typedef Matrix<StorageIndex,RowsAtCompileTime,ColsAtCompileTime,0,MaxRowsAtCompileTime,MaxColsAtCompileTime> Eigen::PermutationBase< Derived >::DenseMatrixType |
typedef Traits::IndicesType Eigen::PermutationBase< Derived >::IndicesType |
typedef Inverse<Derived> Eigen::PermutationBase< Derived >::InverseReturnType |
typedef PlainPermutationType Eigen::PermutationBase< Derived >::PlainObject |
typedef PermutationMatrix<IndicesType::SizeAtCompileTime,IndicesType::MaxSizeAtCompileTime,StorageIndex> Eigen::PermutationBase< Derived >::PlainPermutationType |
typedef void Eigen::PermutationBase< Derived >::Scalar |
typedef Traits::StorageIndex Eigen::PermutationBase< Derived >::StorageIndex |
|
private |
anonymous enum |
|
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.
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
This function is O(n
) procedure allocating a buffer of n
booleans.
|
inline |
|
inline |
|
inline |
const version of indices().
|
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 |