Represents a sequence of transpositions (row/column interchange) More...
#include <Transpositions.h>
Public Member Functions | |
| const Index & | coeff (Index i) const |
| Index & | coeffRef (Index i) |
| IndicesType & | indices () |
| const IndicesType & | indices () const |
| Transpose< TranspositionsBase > | inverse () const |
| Index & | operator() (Index i) |
| const Index & | operator() (Index i) const |
| template<typename OtherDerived> | |
| Transpositions & | operator= (const TranspositionsBase< OtherDerived > &other) |
| Index & | operator[] (Index i) |
| const Index & | operator[] (Index i) const |
| void | resize (int size) |
| void | setIdentity () |
| Index | size () const |
| Transpose< TranspositionsBase > | transpose () const |
| template<typename Other> | |
| Transpositions (const MatrixBase< Other > &indices) | |
| template<typename OtherDerived> | |
| Transpositions (const TranspositionsBase< OtherDerived > &other) | |
| Transpositions (Index size) | |
Represents a sequence of transpositions (row/column interchange)
| SizeAtCompileTime | the number of transpositions, or Dynamic |
| MaxSizeAtCompileTime | the maximum number of transpositions, or Dynamic. This optional parameter defaults to SizeAtCompileTime. Most of the time, you should not have to specify it. |
This class represents a permutation transformation as a sequence of n transpositions ![$[T_{n-1} \ldots T_{i} \ldots T_{0}]$](form_30.png)
indices. Each transposition 

i and indices[i] of the matrix M. A transposition applied on the right (e.g., 
Compared to the class PermutationMatrix, such a sequence of transpositions is what is computed during a decomposition with pivoting, and it is faster when applying the permutation in-place.
To apply a sequence of transpositions to a matrix, simply use the operator * as in the following example:
In this example, we detect that the matrix appears on both side, and so the transpositions are applied in-place without any temporary or extra copy.
|
inline |
Copy constructor.
|
inlineexplicit |
Generic constructor from expression of the transposition indices.
|
inline |
Constructs an uninitialized permutation matrix of given size.
|
inlineinherited |
Direct access to the underlying index vector
|
inlineinherited |
Direct access to the underlying index vector
|
inline |
|
inline |
const version of indices().
|
inlineinherited |
|
inlineinherited |
Direct access to the underlying index vector
|
inlineinherited |
Direct access to the underlying index vector
|
inline |
Copies the other transpositions into *this
|
inlineinherited |
Direct access to the underlying index vector
|
inlineinherited |
Direct access to the underlying index vector
|
inlineinherited |
Resizes to given size.
|
inlineinherited |
Sets *this to represents an identity transformation
|
inlineinherited |
|
inlineinherited |