$treeview $search $mathjax
Eigen
3.2.5
$projectbrief
|
$projectbrief
|
$searchbox |
Class to view a vector of integers as a permutation matrix. More...
Public Member Functions | |
PermutationWrapper < _IndicesType > & | applyTranspositionOnTheLeft (Index i, Index j) |
PermutationWrapper < _IndicesType > & | applyTranspositionOnTheRight (Index i, Index j) |
Index | cols () const |
const PermutationWrapper < _IndicesType > & | derived () const |
PermutationWrapper < _IndicesType > & | derived () |
Index | determinant () const |
IndicesType & | indices () |
const internal::remove_all < typename IndicesType::Nested > ::type & | indices () const |
Transpose< PermutationBase > | inverse () const |
PlainPermutationType | operator* (const Transpose< PermutationBase< Other > > &other) const |
PlainPermutationType | operator* (const PermutationBase< Other > &other) const |
void | resize (Index newSize) |
Index | rows () const |
void | setIdentity (Index newSize) |
void | setIdentity () |
Index | size () const |
DenseMatrixType | toDenseMatrix () const |
Transpose< PermutationBase > | transpose () const |
Friends | |
PlainPermutationType | operator* (const Transpose< PermutationBase< Other > > &other, const PermutationBase &perm) |
Class to view a vector of integers as a permutation matrix.
_IndicesType | the 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.
PermutationWrapper< _IndicesType > & applyTranspositionOnTheLeft | ( | Index | i, | |
Index | j | |||
) | [inline, inherited] |
Multiplies *this by the transposition on the left.
PermutationWrapper< _IndicesType > & applyTranspositionOnTheRight | ( | Index | i, | |
Index | j | |||
) | [inline, inherited] |
Multiplies *this by the transposition on the right.
This is a fast operation, it only consists in swapping two indices.
Index cols | ( | void | ) | const [inline, inherited] |
Reimplemented from EigenBase< PermutationWrapper< _IndicesType > >.
const PermutationWrapper< _IndicesType > & derived | ( | ) | const [inline, inherited] |
PermutationWrapper< _IndicesType > & derived | ( | ) | [inline, inherited] |
Index determinant | ( | ) | const [inline, inherited] |
This function is O(n
) procedure allocating a buffer of n
booleans.
IndicesType& indices | ( | ) | [inline, inherited] |
const internal::remove_all<typename IndicesType::Nested>::type& indices | ( | ) | const [inline] |
const version of indices().
Reimplemented from PermutationBase< PermutationWrapper< _IndicesType > >.
Transpose<PermutationBase> inverse | ( | ) | const [inline, inherited] |
PlainPermutationType operator* | ( | const Transpose< PermutationBase< Other > > & | other | ) | const [inline, inherited] |
PlainPermutationType operator* | ( | const PermutationBase< Other > & | other | ) | const [inline, inherited] |
void resize | ( | Index | newSize | ) | [inline, inherited] |
Resizes to given size.
Index rows | ( | void | ) | const [inline, inherited] |
Reimplemented from EigenBase< PermutationWrapper< _IndicesType > >.
void setIdentity | ( | Index | newSize | ) | [inline, inherited] |
Sets *this to be the identity permutation matrix of given size.
void setIdentity | ( | ) | [inline, inherited] |
Sets *this to be the identity permutation matrix
Index size | ( | ) | const [inline, inherited] |
Reimplemented from EigenBase< PermutationWrapper< _IndicesType > >.
DenseMatrixType toDenseMatrix | ( | ) | const [inline, inherited] |
Transpose<PermutationBase> transpose | ( | ) | const [inline, inherited] |
PlainPermutationType operator* | ( | const Transpose< PermutationBase< Other > > & | other, | |
const PermutationBase< PermutationWrapper< _IndicesType > > & | perm | |||
) | [friend, inherited] |