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.

Public Types | |
| typedef internal::traits < Derived >::StorageKind | StorageKind |
| typedef internal::traits < Derived >::Index | Index |
Public Member Functions | |
| template<typename OtherDerived > | |
| Derived & | operator= (const PermutationBase< OtherDerived > &other) |
| Copies the other permutation into *this. | |
| template<typename OtherDerived > | |
| Derived & | operator= (const TranspositionsBase< OtherDerived > &tr) |
| Assignment from the Transpositions tr. | |
| Index | rows () const |
| Index | cols () const |
| Index | size () const |
| DenseMatrixType | toDenseMatrix () const |
| const IndicesType & | indices () const |
| const version of indices(). | |
| IndicesType & | indices () |
| void | resize (Index size) |
| Resizes to given size. | |
| void | setIdentity () |
| Sets *this to be the identity permutation matrix. | |
| void | setIdentity (Index size) |
| Sets *this to be the identity permutation matrix of given size. | |
| Derived & | applyTranspositionOnTheLeft (Index i, Index j) |
Multiplies *this by the transposition on the left. | |
| Derived & | applyTranspositionOnTheRight (Index i, Index j) |
Multiplies *this by the transposition on the right. | |
| Transpose< PermutationBase > | inverse () const |
| Transpose< PermutationBase > | transpose () const |
| template<typename Other > | |
| PlainPermutationType | operator* (const PermutationBase< Other > &other) const |
| template<typename Other > | |
| PlainPermutationType | operator* (const Transpose< PermutationBase< Other > > &other) const |
| Derived & | derived () |
| const Derived & | derived () const |
| Derived & | const_cast_derived () const |
| const Derived & | const_derived () const |
| void | evalTo (Dest &dst) const |
| void | addTo (Dest &dst) const |
| void | subTo (Dest &dst) const |
| void | applyThisOnTheRight (Dest &dst) const |
| void | applyThisOnTheLeft (Dest &dst) const |
Private Types | |
| typedef internal::traits< Derived > | Traits |
| typedef EigenBase< Derived > | Base |
Friends | |
| template<typename Other > | |
| PlainPermutationType | operator* (const Transpose< PermutationBase< Other > > &other, const PermutationBase &perm) |
typedef EigenBase<Derived> Eigen::PermutationBase::Base [private] |
typedef internal::traits<Derived>::Index Eigen::EigenBase::Index [inherited] |
Reimplemented in Eigen::DenseCoeffsBase< Derived, DirectWriteAccessors >, Eigen::DenseCoeffsBase< Derived, DirectAccessors >, Eigen::DenseCoeffsBase< Derived, WriteAccessors >, Eigen::TriangularBase, Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >, Eigen::internal::BandMatrixBase, and Eigen::SparseMatrixBase.
typedef internal::traits<Derived>::StorageKind Eigen::EigenBase::StorageKind [inherited] |
typedef internal::traits<Derived> Eigen::PermutationBase::Traits [private] |
| void Eigen::EigenBase::addTo | ( | Dest & | dst | ) | const [inline, inherited] |
| void Eigen::EigenBase::applyThisOnTheLeft | ( | Dest & | dst | ) | const [inline, inherited] |
| void Eigen::EigenBase::applyThisOnTheRight | ( | Dest & | dst | ) | const [inline, inherited] |
| Index Eigen::PermutationBase::cols | ( | void | ) | const [inline] |
Reimplemented from Eigen::EigenBase< Derived >.
| Derived& Eigen::EigenBase::const_cast_derived | ( | ) | const [inline, inherited] |
| const Derived& Eigen::EigenBase::const_derived | ( | ) | const [inline, inherited] |
| Derived& Eigen::EigenBase::derived | ( | ) | [inline, inherited] |
| const Derived& Eigen::EigenBase::derived | ( | ) | const [inline, inherited] |
| void Eigen::EigenBase::evalTo | ( | Dest & | dst | ) | const [inline, inherited] |
Reimplemented in Eigen::internal::BandMatrixBase.
| const IndicesType& Eigen::PermutationBase::indices | ( | ) | const [inline] |
const version of indices().
Reimplemented in Eigen::PermutationWrapper, Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >, and Eigen::PermutationMatrix.
| IndicesType& Eigen::PermutationBase::indices | ( | ) | [inline] |
Reimplemented in Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >, and Eigen::PermutationMatrix.
| Transpose<PermutationBase> Eigen::PermutationBase::inverse | ( | ) | const [inline] |
| PlainPermutationType Eigen::PermutationBase::operator* | ( | const PermutationBase< Other > & | other | ) | const [inline] |
| PlainPermutationType Eigen::PermutationBase::operator* | ( | const Transpose< PermutationBase< Other > > & | other | ) | const [inline] |
| Derived& Eigen::PermutationBase::operator= | ( | const PermutationBase< OtherDerived > & | other | ) | [inline] |
| Derived& Eigen::PermutationBase::operator= | ( | const TranspositionsBase< OtherDerived > & | tr | ) | [inline] |
Assignment from the Transpositions tr.
| void Eigen::PermutationBase::resize | ( | Index | size | ) | [inline] |
| Index Eigen::PermutationBase::rows | ( | void | ) | const [inline] |
Reimplemented from Eigen::EigenBase< Derived >.
| void Eigen::PermutationBase::setIdentity | ( | ) | [inline] |
| void Eigen::PermutationBase::setIdentity | ( | Index | size | ) | [inline] |
| Index Eigen::PermutationBase::size | ( | ) | const [inline] |
Reimplemented from Eigen::EigenBase< Derived >.
| void Eigen::EigenBase::subTo | ( | Dest & | dst | ) | const [inline, inherited] |
| DenseMatrixType Eigen::PermutationBase::toDenseMatrix | ( | ) | const [inline] |
| Transpose<PermutationBase> Eigen::PermutationBase::transpose | ( | ) | const [inline] |
| PlainPermutationType operator* | ( | const Transpose< PermutationBase< Other > > & | other, |
| const PermutationBase & | perm | ||
| ) | [friend] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |