Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Friends

PermutationWrapper< _IndicesType > Class Template Reference

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

#include <PermutationMatrix.h>

Inheritance diagram for PermutationWrapper< _IndicesType >:
Inheritance graph
[legend]
Collaboration diagram for PermutationWrapper< _IndicesType >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  
typedef Matrix< Scalar,
RowsAtCompileTime,
ColsAtCompileTime,
0, MaxRowsAtCompileTime,
MaxColsAtCompileTime > 
DenseMatrixType
typedef Traits::Index Index
typedef Traits::IndicesType IndicesType
typedef PermutationMatrix
< IndicesType::SizeAtCompileTime,
IndicesType::MaxSizeAtCompileTime,
Index > 
PlainPermutationType
typedef Traits::Scalar Scalar
typedef internal::traits
< PermutationWrapper
< _IndicesType >
>::StorageKind 
StorageKind

Public Member Functions

void addTo (Dest &dst) const
void applyThisOnTheLeft (Dest &dst) const
void applyThisOnTheRight (Dest &dst) const
PermutationWrapper
< _IndicesType > & 
applyTranspositionOnTheLeft (Index i, Index j)
PermutationWrapper
< _IndicesType > & 
applyTranspositionOnTheRight (Index i, Index j)
Index cols () const
PermutationWrapper
< _IndicesType > & 
const_cast_derived () const
const PermutationWrapper
< _IndicesType > & 
const_derived () const
const PermutationWrapper
< _IndicesType > & 
derived () const
PermutationWrapper
< _IndicesType > & 
derived ()
void evalTo (MatrixBase< DenseDerived > &other) const
void evalTo (Dest &dst) const
const internal::remove_all
< typename IndicesType::Nested >
::type
indices () const
IndicesType & indices ()
Transpose< PermutationBaseinverse () const
PlainPermutationType operator* (const PermutationBase< Other > &other) const
PlainPermutationType operator* (const Transpose< PermutationBase< Other > > &other) const
 PermutationWrapper (const IndicesType &indices)
void resize (Index size)
Index rows () const
void setIdentity (Index size)
void setIdentity ()
Index size () const
void subTo (Dest &dst) const
DenseMatrixType toDenseMatrix () const
Transpose< PermutationBasetranspose () const

Protected Member Functions

void assignProduct (const Lhs &lhs, const Rhs &rhs)
void assignTranspose (const PermutationBase< OtherDerived > &other)

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)

Detailed Description

template<typename _IndicesType>
class PermutationWrapper< _IndicesType >

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

Definition at line 494 of file PermutationMatrix.h.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index