Class to view a vector of integers as a permutation matrix. More...
#include <PermutationMatrix.h>
Inheritance diagram for PermutationWrapper< _IndicesType >:Public Member Functions | |
| PermutationWrapper< _IndicesType > & | applyTranspositionOnTheLeft (Index i, Index j) |
| PermutationWrapper< _IndicesType > & | applyTranspositionOnTheRight (Index i, Index j) |
| Index | cols () const |
| Derived & | derived () |
| const Derived & | derived () const |
| IndicesType & | indices () |
| const internal::remove_all< typename IndicesType::Nested >::type & | indices () const |
| Transpose< PermutationBase > | inverse () const |
| PlainPermutationType | operator * (const PermutationBase< Other > &other) const |
| PlainPermutationType | operator * (const Transpose< PermutationBase< Other > > &other) const |
| void | resize (Index size) |
| Index | rows () const |
| void | setIdentity () |
| void | setIdentity (Index size) |
| Index | size () const |
| DenseMatrixType | toDenseMatrix () const |
| Transpose< PermutationBase > | transpose () const |
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.
|
inlineinherited |
Multiplies *this by the transposition
on the left.
|
inlineinherited |
Multiplies *this by the transposition
on the right.
This is a fast operation, it only consists in swapping two indices.
|
inlineinherited |
|
inlineinherited |
Referenced by MatrixBase< DiagonalProduct< MatrixType, DiagonalType, ProductOrder > >::applyOnTheLeft(), MatrixBase< DiagonalProduct< MatrixType, DiagonalType, ProductOrder > >::applyOnTheRight(), PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >::applyTranspositionOnTheLeft(), PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >::applyTranspositionOnTheRight(), SparseMatrixBase< CwiseBinaryOp< BinaryOp, Lhs, Rhs > >::binaryExpr(), EigenBase< SparseSymmetricPermutationProduct< MatrixType, UpLo > >::cols(), SparseMatrixBase< CwiseBinaryOp< BinaryOp, Lhs, Rhs > >::imag(), PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >::indices(), PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >::inverse(), RotationBase< Derived, 3 >::operator *(), Translation< _Scalar, _Dim >::operator *(), PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >::operator *(), SparseMatrixBase< CwiseBinaryOp< BinaryOp, Lhs, Rhs > >::operator *(), Transform< _Scalar, _Dim, _Mode, _Options >::operator *(), MatrixBase< DiagonalProduct< MatrixType, DiagonalType, ProductOrder > >::operator *=(), PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >::operator=(), DenseBase< Derived >::operator=(), Transform< _Scalar, _Dim, _Mode, _Options >::operator=(), PlainObjectBase< Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::operator=(), PlainObjectBase< Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::PlainObjectBase(), PlainObjectBase< Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::resizeLike(), EigenBase< SparseSymmetricPermutationProduct< MatrixType, UpLo > >::rows(), SimplicialCholeskyBase< SimplicialLDLT< _MatrixType, _UpLo > >::solve(), IterativeSolverBase< ConjugateGradient< _MatrixType, _UpLo, _Preconditioner > >::solve(), CholmodBase< _MatrixType, _UpLo, CholmodSimplicialLLT< _MatrixType, _UpLo > >::solve(), SparseMatrix< Scalar, RowMajor >::SparseMatrix(), PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >::toDenseMatrix(), Transform< _Scalar, _Dim, _Mode, _Options >::Transform(), PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, IndexType > >::transpose(), and SparseMatrixBase< CwiseBinaryOp< BinaryOp, Lhs, Rhs > >::unaryExpr().
|
inlineinherited |
|
inlineinherited |
|
inline |
const version of indices().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Resizes to given size.
|
inlineinherited |
|
inlineinherited |
Sets *this to be the identity permutation matrix
|
inlineinherited |
Sets *this to be the identity permutation matrix of given size.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |