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

Detailed Description

Permutation matrix.

Parameters:
SizeAtCompileTimethe number of rows/cols, or Dynamic
MaxSizeAtCompileTimethe maximum number of rows/cols, or Dynamic. This optional parameter defaults to SizeAtCompileTime. Most of the time, you should not have to specify it.
IndexTypethe interger type of the indices

This class represents a permutation matrix, internally stored as a vector of integers.

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

List of all members.

Public Member Functions

 PermutationMatrix ()
 PermutationMatrix (int size)
 Constructs an uninitialized permutation matrix of given size.
template<typename OtherDerived >
 PermutationMatrix (const PermutationBase< OtherDerived > &other)
 Copy constructor.
template<typename Other >
 PermutationMatrix (const MatrixBase< Other > &indices)
 Generic constructor from expression of the indices.
template<typename Other >
 PermutationMatrix (const TranspositionsBase< Other > &tr)
 Convert the Transpositions tr to a permutation matrix.
template<typename Other >
PermutationMatrix & operator= (const PermutationBase< Other > &other)
 Copies the other permutation into *this.
template<typename Other >
PermutationMatrix & operator= (const TranspositionsBase< Other > &tr)
 Assignment from the Transpositions tr.
const IndicesType & indices () const
 const version of indices().
IndicesType & indices ()

Protected Attributes

IndicesType m_indices

Private Types

typedef PermutationBase
< PermutationMatrix > 
Base
typedef internal::traits
< PermutationMatrix > 
Traits

Member Typedef Documentation

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

Constructor & Destructor Documentation

Eigen::PermutationMatrix::PermutationMatrix ( ) [inline]

Definition at line 305 of file Core.

Eigen::PermutationMatrix::PermutationMatrix ( int  size) [inline]

Constructs an uninitialized permutation matrix of given size.

Definition at line 310 of file Core.

template<typename OtherDerived >
Eigen::PermutationMatrix::PermutationMatrix ( const PermutationBase< OtherDerived > &  other) [inline]

Copy constructor.

Definition at line 315 of file Core.

template<typename Other >
Eigen::PermutationMatrix::PermutationMatrix ( const MatrixBase< Other > &  indices) [inline, explicit]

Generic constructor from expression of the indices.

The indices array has the meaning that the permutations sends each integer i to indices[i].

Warning:
It is your responsibility to check that the indices array that you passes actually describes a permutation, i.e., each value between 0 and n-1 occurs exactly once, where n is the array's size.

Definition at line 332 of file Core.

template<typename Other >
Eigen::PermutationMatrix::PermutationMatrix ( const TranspositionsBase< Other > &  tr) [inline, explicit]

Convert the Transpositions tr to a permutation matrix.

Definition at line 337 of file Core.


Member Function Documentation

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

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

Definition at line 372 of file Core.

template<typename Other >
PermutationMatrix& Eigen::PermutationMatrix::operator= ( const PermutationBase< Other > &  other) [inline]

Copies the other permutation into *this.

Definition at line 345 of file Core.

template<typename Other >
PermutationMatrix& Eigen::PermutationMatrix::operator= ( const TranspositionsBase< Other > &  tr) [inline]

Assignment from the Transpositions tr.

Definition at line 353 of file Core.


Member Data Documentation

IndicesType Eigen::PermutationMatrix::m_indices [protected]

Definition at line 394 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011