PermutationMatrix (Index size )
Constructs an uninitialized permutation matrix of given size.
template<typename OtherDerived >
PermutationMatrix (const PermutationBase < OtherDerived > &other)
Copy constructor.
PermutationMatrix (const PermutationMatrix &other)
Standard 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 .
PermutationMatrix & operator= (const PermutationMatrix &other)
This is a special case of the templated operator=.
const IndicesType & indices () const
const version of indices() .
IndicesType & indices ()
template<typename Other >
PermutationMatrix (const InverseImpl < Other, PermutationStorage > &other)
template<typename Lhs , typename Rhs >
PermutationMatrix (internal::PermPermProduct_t, const Lhs &lhs, const Rhs &rhs)
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & operator= (const PermutationBase < OtherDerived > &other)
Copies the other permutation into *this.
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & operator= (const TranspositionsBase < OtherDerived > &tr )
Assignment from the Transpositions tr .
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & operator= (const PermutationBase &other)
This is a special case of the templated operator=.
Index rows () const
Index cols () const
Index size () const
void evalTo (MatrixBase < DenseDerived > &other) const
DenseMatrixType toDenseMatrix () const
const IndicesType & indices () const
const version of indices() .
IndicesType & indices ()
void resize (Index newSize )
Resizes to given size.
void setIdentity ()
Sets *this to be the identity permutation matrix.
void setIdentity (Index newSize )
Sets *this to be the identity permutation matrix of given size.
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & applyTranspositionOnTheLeft (Index i, Index j )
Multiplies *this by the transposition on the left.
PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & applyTranspositionOnTheRight (Index i, Index j )
Multiplies *this by the transposition on the right.
InverseReturnType inverse () const
InverseReturnType transpose () const
PlainPermutationType operator* (const PermutationBase < Other > &other) const
PlainPermutationType operator* (const InverseImpl < Other, PermutationStorage > &other) const
Index determinant () const
EIGEN_DEVICE_FUNC PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & derived ()
EIGEN_DEVICE_FUNC const PermutationMatrix < SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & derived () const
EIGEN_DEVICE_FUNC Derived & derived ()
EIGEN_DEVICE_FUNC const Derived & derived () const
EIGEN_DEVICE_FUNC Derived & const_cast_derived () const
EIGEN_DEVICE_FUNC const Derived & const_derived () const
EIGEN_DEVICE_FUNC Index rows () const
EIGEN_DEVICE_FUNC Index cols () const
EIGEN_DEVICE_FUNC Index size () const
template<typename Dest >
EIGEN_DEVICE_FUNC void evalTo (Dest &dst ) const
template<typename Dest >
EIGEN_DEVICE_FUNC void addTo (Dest &dst ) const
template<typename Dest >
EIGEN_DEVICE_FUNC void subTo (Dest &dst ) const
template<typename Dest >
EIGEN_DEVICE_FUNC void applyThisOnTheRight (Dest &dst ) const
template<typename Dest >
EIGEN_DEVICE_FUNC void applyThisOnTheLeft (Dest &dst ) const
template<int SizeAtCompileTime, int MaxSizeAtCompileTime,
typename _StorageIndex>
class Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >
Permutation matrix.
Parameters
SizeAtCompileTime the number of rows/cols, or Dynamic
MaxSizeAtCompileTime the maximum number of rows/cols, or Dynamic. This optional parameter defaults to SizeAtCompileTime. Most of the time, you should not have to specify it.
StorageIndex the integer 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