Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Protected Attributes | Private Types | Friends
Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess > Class Reference
Inheritance diagram for Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Map (const Index *indices)
 Map (const Index *indices, Index size)
template<typename Other >
Mapoperator= (const PermutationBase< Other > &other)
 Copies the other permutation into *this.
template<typename Other >
Mapoperator= (const TranspositionsBase< Other > &tr)
 Assignment from the Transpositions tr.
const IndicesType & indices () const
 const version of indices().
IndicesType & indices ()
Index rows () const
Index cols () const
Index size () const
DenseMatrixType toDenseMatrix () const
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

IndicesType m_indices

Private Types

typedef PermutationBase< MapBase
typedef internal::traits< MapTraits

Friends

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

Member Typedef Documentation

typedef PermutationBase<Map> Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::Base [private]
typedef internal::traits<Map> Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::Traits [private]

Constructor & Destructor Documentation

Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::Map ( const Index *  indices) [inline]

Definition at line 421 of file Core.

Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::Map ( const Index *  indices,
Index  size 
) [inline]

Definition at line 425 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.

const IndicesType& Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::indices ( ) const [inline]
IndicesType& Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::indices ( ) [inline]
Returns:
a reference to the stored array representing the permutation.

Reimplemented from Eigen::PermutationBase< Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess > >.

Definition at line 453 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.

template<typename Other >
Map& Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::operator= ( const PermutationBase< Other > &  other) [inline]

Copies the other permutation into *this.

Definition at line 431 of file Core.

template<typename Other >
Map& Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::operator= ( const TranspositionsBase< Other > &  tr) [inline]

Assignment from the Transpositions tr.

Definition at line 436 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< Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess > > &  perm 
) [friend, inherited]
Returns:
the product of an inverse permutation with another permutation.
Note:

Definition at line 263 of file Core.


Member Data Documentation

IndicesType Eigen::Map< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType >, _PacketAccess >::m_indices [protected]

Definition at line 457 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