Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Protected Attributes | Private Types | Friends
Eigen::PermutationWrapper Class Reference

Detailed Description

Class to view a vector of integers as a permutation matrix.

Parameters:
_IndicesTypethe type of the vector of integer (can be any compatible expression)

This class allows to view any vector expression of integers as a permutation matrix.

See also:
class PermutationBase, class PermutationMatrix
Inheritance diagram for Eigen::PermutationWrapper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PermutationWrapper (const IndicesType &indices)
const internal::remove_all
< typename IndicesType::Nested >
::type & 
indices () const
 const version of indices().
Index rows () const
Index cols () const
Index size () const
DenseMatrixType toDenseMatrix () const
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 $(ij)$ on the left.
Derived & applyTranspositionOnTheRight (Index i, Index j)
 Multiplies *this by the transposition $(ij)$ on the right.
Transpose< PermutationBaseinverse () const
Transpose< PermutationBasetranspose () const
PlainPermutationType operator* (const PermutationBase< Other > &other) const
PlainPermutationType operator* (const Transpose< PermutationBase< Other > > &other) const

Protected Attributes

const IndicesType::Nested m_indices

Private Types

typedef PermutationBase
< PermutationWrapper
Base
typedef internal::traits
< PermutationWrapper
Traits

Friends

PlainPermutationType operator* (const Transpose< PermutationBase< Other > > &other, const PermutationBase &perm)

Member Typedef Documentation

Reimplemented from Eigen::PermutationBase< PermutationWrapper< _IndicesType > >.

Definition at line 497 of file Core.

typedef internal::traits<PermutationWrapper> Eigen::PermutationWrapper::Traits [private]

Reimplemented from Eigen::PermutationBase< PermutationWrapper< _IndicesType > >.

Definition at line 498 of file Core.


Constructor & Destructor Documentation

Eigen::PermutationWrapper::PermutationWrapper ( const IndicesType &  indices) [inline]

Definition at line 505 of file Core.


Member Function Documentation

Derived& Eigen::PermutationBase::applyTranspositionOnTheLeft ( Index  i,
Index  j 
) [inline, inherited]

Multiplies *this by the transposition $(ij)$ on the left.

Returns:
a reference to *this.
Warning:
This is much slower than applyTranspositionOnTheRight(int,int): this has linear complexity and requires a lot of branching.
See also:
applyTranspositionOnTheRight(int,int)

Definition at line 183 of file Core.

Derived& Eigen::PermutationBase::applyTranspositionOnTheRight ( Index  i,
Index  j 
) [inline, inherited]

Multiplies *this by the transposition $(ij)$ on the right.

Returns:
a reference to *this.

This is a fast operation, it only consists in swapping two indices.

See also:
applyTranspositionOnTheLeft(int,int)

Definition at line 202 of file Core.

Index Eigen::PermutationBase::cols ( void  ) const [inline, inherited]
Returns:
the number of columns

Definition at line 123 of file Core.

IndicesType& Eigen::PermutationBase::indices ( ) [inline, inherited]
Returns:
a reference to the stored array representing the permutation.

Definition at line 150 of file Core.

const internal::remove_all<typename IndicesType::Nested>::type& Eigen::PermutationWrapper::indices ( ) const [inline]

const version of indices().

Reimplemented from Eigen::PermutationBase< PermutationWrapper< _IndicesType > >.

Definition at line 511 of file Core.

Transpose<PermutationBase> Eigen::PermutationBase::inverse ( ) const [inline, inherited]
Returns:
the inverse permutation matrix.
Note:

Definition at line 213 of file Core.

PlainPermutationType Eigen::PermutationBase::operator* ( const PermutationBase< Other > &  other) const [inline, inherited]
Returns:
the product permutation matrix.
Note:

Definition at line 247 of file Core.

PlainPermutationType Eigen::PermutationBase::operator* ( const Transpose< PermutationBase< Other > > &  other) const [inline, inherited]
Returns:
the product of a permutation with another inverse permutation.
Note:

Definition at line 255 of file Core.

void Eigen::PermutationBase::resize ( Index  size) [inline, inherited]

Resizes to given size.

Definition at line 154 of file Core.

Index Eigen::PermutationBase::rows ( void  ) const [inline, inherited]
Returns:
the number of rows

Definition at line 120 of file Core.

void Eigen::PermutationBase::setIdentity ( ) [inline, inherited]

Sets *this to be the identity permutation matrix.

Definition at line 160 of file Core.

void Eigen::PermutationBase::setIdentity ( Index  size) [inline, inherited]

Sets *this to be the identity permutation matrix of given size.

Definition at line 168 of file Core.

Index Eigen::PermutationBase::size ( ) const [inline, inherited]
Returns:
the size of a side of the respective square matrix, i.e., the number of indices

Definition at line 126 of file Core.

DenseMatrixType Eigen::PermutationBase::toDenseMatrix ( ) const [inline, inherited]
Returns:
a Matrix object initialized from this permutation matrix. Notice that it is inefficient to return this Matrix object by value. For efficiency, favor using the Matrix constructor taking EigenBase objects.

Definition at line 142 of file Core.

Transpose<PermutationBase> Eigen::PermutationBase::transpose ( ) const [inline, inherited]
Returns:
the tranpose permutation matrix.
Note:

Definition at line 219 of file Core.


Friends And Related Function Documentation

PlainPermutationType operator* ( const Transpose< PermutationBase< Other > > &  other,
const PermutationBase< PermutationWrapper< _IndicesType > > &  perm 
) [friend, inherited]
Returns:
the product of an inverse permutation with another permutation.
Note:

Definition at line 263 of file Core.


Member Data Documentation

const IndicesType::Nested Eigen::PermutationWrapper::m_indices [protected]

Definition at line 515 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011