Shapeworks Studio
2.1
Shape analysis software suite
|
Permutation matrix. More...
#include <PermutationMatrix.h>
Public Types | |
typedef Traits::IndicesType | IndicesType |
Public Types inherited from Eigen::PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > > | |
enum | |
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 | |
PermutationMatrix (int size) | |
template<typename OtherDerived > | |
PermutationMatrix (const PermutationBase< OtherDerived > &other) | |
PermutationMatrix (const PermutationMatrix &other) | |
template<typename Other > | |
PermutationMatrix (const MatrixBase< Other > &a_indices) | |
template<typename Other > | |
PermutationMatrix (const TranspositionsBase< Other > &tr) | |
template<typename Other > | |
PermutationMatrix & | operator= (const PermutationBase< Other > &other) |
template<typename Other > | |
PermutationMatrix & | operator= (const TranspositionsBase< Other > &tr) |
PermutationMatrix & | operator= (const PermutationMatrix &other) |
const IndicesType & | indices () const |
IndicesType & | indices () |
template<typename Other > | |
PermutationMatrix (const Transpose< PermutationBase< Other > > &other) | |
template<typename Lhs , typename Rhs > | |
PermutationMatrix (internal::PermPermProduct_t, const Lhs &lhs, const Rhs &rhs) | |
Public Member Functions inherited from Eigen::PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > > | |
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > & | operator= (const PermutationBase< OtherDerived > &other) |
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > & | operator= (const TranspositionsBase< OtherDerived > &tr) |
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > & | operator= (const PermutationBase &other) |
Index | rows () const |
Index | cols () const |
Index | size () const |
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) |
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > & | applyTranspositionOnTheLeft (Index i, Index j) |
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > & | applyTranspositionOnTheRight (Index i, Index j) |
Transpose< PermutationBase > | inverse () const |
Transpose< PermutationBase > | transpose () const |
PlainPermutationType | operator* (const PermutationBase< Other > &other) const |
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 Attributes | |
IndicesType | m_indices |
Additional Inherited Members | |
Protected Member Functions inherited from Eigen::PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > > | |
void | assignTranspose (const PermutationBase< OtherDerived > &other) |
void | assignProduct (const Lhs &lhs, const Rhs &rhs) |
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. |
IndexType | the interger type of the indices |
This class represents a permutation matrix, internally stored as a vector of integers.
Definition at line 283 of file PermutationMatrix.h.
|
inline |
Constructs an uninitialized permutation matrix of given size.
Definition at line 298 of file PermutationMatrix.h.
|
inline |
Copy constructor.
Definition at line 303 of file PermutationMatrix.h.
|
inline |
Standard copy constructor. Defined only to prevent a default copy constructor from hiding the other templated constructor
Definition at line 309 of file PermutationMatrix.h.
|
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 320 of file PermutationMatrix.h.
|
inlineexplicit |
Convert the Transpositions tr to a permutation matrix
Definition at line 325 of file PermutationMatrix.h.
|
inline |
const version of indices().
Definition at line 358 of file PermutationMatrix.h.
|
inline |
Definition at line 360 of file PermutationMatrix.h.
|
inline |
Copies the other permutation into *this
Definition at line 333 of file PermutationMatrix.h.
|
inline |
Assignment from the Transpositions tr
Definition at line 341 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 350 of file PermutationMatrix.h.