![]() |
Shapeworks Studio
2.1
Shape analysis software suite
|
Base class for permutations. More...
#include <PermutationMatrix.h>
Inheritance diagram for Eigen::PermutationBase< Derived >:
Collaboration diagram for Eigen::PermutationBase< Derived >:Public Types | |
| enum | { Flags = Traits::Flags, CoeffReadCost = Traits::CoeffReadCost, RowsAtCompileTime = Traits::RowsAtCompileTime, ColsAtCompileTime = Traits::ColsAtCompileTime, MaxRowsAtCompileTime = Traits::MaxRowsAtCompileTime, MaxColsAtCompileTime = Traits::MaxColsAtCompileTime } |
| typedef Traits::IndicesType | IndicesType |
| typedef Traits::Scalar | Scalar |
| typedef Traits::Index | Index |
| typedef Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime, 0, MaxRowsAtCompileTime, MaxColsAtCompileTime > | DenseMatrixType |
| typedef PermutationMatrix< IndicesType::SizeAtCompileTime, IndicesType::MaxSizeAtCompileTime, Index > | PlainPermutationType |
Public Types inherited from Eigen::EigenBase< Derived > | |
| typedef internal::traits< Derived >::StorageKind | StorageKind |
| typedef internal::traits< Derived >::Index | Index |
Public Member Functions | |
| template<typename OtherDerived > | |
| Derived & | operator= (const PermutationBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const TranspositionsBase< OtherDerived > &tr) |
| Derived & | operator= (const PermutationBase &other) |
| Index | rows () const |
| Index | cols () const |
| Index | size () const |
| template<typename DenseDerived > | |
| void | evalTo (MatrixBase< DenseDerived > &other) const |
| DenseMatrixType | toDenseMatrix () const |
| const IndicesType & | indices () const |
| IndicesType & | indices () |
| void | resize (Index newSize) |
| void | setIdentity () |
| void | setIdentity (Index newSize) |
| Derived & | applyTranspositionOnTheLeft (Index i, Index j) |
| Derived & | applyTranspositionOnTheRight (Index i, Index j) |
| 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 |
Public Member Functions inherited from Eigen::EigenBase< Derived > | |
| Derived & | derived () |
| const Derived & | derived () const |
| Derived & | const_cast_derived () const |
| const Derived & | const_derived () const |
| Index | rows () const |
| Index | cols () const |
| Index | size () const |
| template<typename Dest > | |
| void | evalTo (Dest &dst) const |
| template<typename Dest > | |
| void | addTo (Dest &dst) const |
| template<typename Dest > | |
| void | subTo (Dest &dst) const |
| template<typename Dest > | |
| void | applyThisOnTheRight (Dest &dst) const |
| template<typename Dest > | |
| void | applyThisOnTheLeft (Dest &dst) const |
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) |
Friends | |
| template<typename Other > | |
| PlainPermutationType | operator* (const Transpose< PermutationBase< Other > > &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.
Definition at line 53 of file PermutationMatrix.h.
|
inline |
Multiplies *this by the transposition
on the left.
Definition at line 171 of file PermutationMatrix.h.
|
inline |
Multiplies *this by the transposition
on the right.
This is a fast operation, it only consists in swapping two indices.
Definition at line 190 of file PermutationMatrix.h.
|
inline |
Definition at line 111 of file PermutationMatrix.h.
|
inline |
|
inline |
Definition at line 138 of file PermutationMatrix.h.
|
inline |
|
inline |
|
inline |
Definition at line 243 of file PermutationMatrix.h.
|
inline |
Copies the other permutation into *this
Definition at line 80 of file PermutationMatrix.h.
|
inline |
Assignment from the Transpositions tr
Definition at line 88 of file PermutationMatrix.h.
|
inline |
This is a special case of the templated operator=. Its purpose is to prevent a default operator= from hiding the templated operator=.
Definition at line 100 of file PermutationMatrix.h.
|
inline |
Resizes to given size.
Definition at line 142 of file PermutationMatrix.h.
|
inline |
Definition at line 108 of file PermutationMatrix.h.
|
inline |
Sets *this to be the identity permutation matrix
Definition at line 148 of file PermutationMatrix.h.
|
inline |
Sets *this to be the identity permutation matrix of given size.
Definition at line 156 of file PermutationMatrix.h.
|
inline |
Definition at line 114 of file PermutationMatrix.h.
|
inline |
|
inline |
|
friend |
Definition at line 251 of file PermutationMatrix.h.
1.8.11