Eigen::TranspositionsBase< Derived > Class Template Reference
+ Inheritance diagram for Eigen::TranspositionsBase< Derived >:

Public Types

typedef Eigen::Index Index
 
typedef Traits::IndicesType IndicesType
 
typedef IndicesType::Scalar StorageIndex
 

Public Member Functions

const StorageIndexcoeff (Index i) const
 
StorageIndexcoeffRef (Index i)
 
Index cols () const
 
Derived & derived ()
 
const Derived & derived () const
 
IndicesTypeindices ()
 
const IndicesTypeindices () const
 
Transpose< TranspositionsBaseinverse () const
 
StorageIndexoperator() (Index i)
 
const StorageIndexoperator() (Index i) const
 
template<typename OtherDerived >
Derived & operator= (const TranspositionsBase< OtherDerived > &other)
 
StorageIndexoperator[] (Index i)
 
const StorageIndexoperator[] (Index i) const
 
void resize (Index newSize)
 
Index rows () const
 
void setIdentity ()
 
Index size () const
 
Transpose< TranspositionsBasetranspose () const
 

Private Types

typedef internal::traits< Derived > Traits
 

Detailed Description

template<typename Derived>
class Eigen::TranspositionsBase< Derived >

Definition at line 18 of file Transpositions.h.

Member Typedef Documentation

◆ Index

template<typename Derived >
typedef Eigen::Index Eigen::TranspositionsBase< Derived >::Index
Deprecated:
since Eigen 3.3

Definition at line 26 of file Transpositions.h.

◆ IndicesType

template<typename Derived >
typedef Traits::IndicesType Eigen::TranspositionsBase< Derived >::IndicesType

Definition at line 24 of file Transpositions.h.

◆ StorageIndex

template<typename Derived >
typedef IndicesType::Scalar Eigen::TranspositionsBase< Derived >::StorageIndex

Definition at line 25 of file Transpositions.h.

◆ Traits

template<typename Derived >
typedef internal::traits<Derived> Eigen::TranspositionsBase< Derived >::Traits
private

Definition at line 20 of file Transpositions.h.

Member Function Documentation

◆ coeff()

template<typename Derived >
const StorageIndex& Eigen::TranspositionsBase< Derived >::coeff ( Index  i) const
inline

Direct access to the underlying index vector

Definition at line 53 of file Transpositions.h.

53 { return indices().coeff(i); }
const IndicesType & indices() const

◆ coeffRef()

template<typename Derived >
StorageIndex& Eigen::TranspositionsBase< Derived >::coeffRef ( Index  i)
inline

Direct access to the underlying index vector

Definition at line 55 of file Transpositions.h.

55 { return indices().coeffRef(i); }

◆ cols()

template<typename Derived >
Index Eigen::TranspositionsBase< Derived >::cols ( void  ) const
inline
Returns
the number of columns of the equivalent permutation matrix

Definition at line 49 of file Transpositions.h.

49 { return indices().size(); }

◆ derived() [1/2]

template<typename Derived >
Derived& Eigen::TranspositionsBase< Derived >::derived ( )
inline

Definition at line 29 of file Transpositions.h.

29 { return *static_cast<Derived*>(this); }

◆ derived() [2/2]

template<typename Derived >
const Derived& Eigen::TranspositionsBase< Derived >::derived ( ) const
inline

Definition at line 31 of file Transpositions.h.

31 { return *static_cast<const Derived*>(this); }

◆ indices() [1/2]

template<typename Derived >
IndicesType& Eigen::TranspositionsBase< Derived >::indices ( )
inline
Returns
a reference to the stored array representing the transpositions.

Definition at line 70 of file Transpositions.h.

70 { return derived().indices(); }

◆ indices() [2/2]

template<typename Derived >
const IndicesType& Eigen::TranspositionsBase< Derived >::indices ( ) const
inline

const version of indices().

Definition at line 67 of file Transpositions.h.

67 { return derived().indices(); }

◆ inverse()

template<typename Derived >
Transpose<TranspositionsBase> Eigen::TranspositionsBase< Derived >::inverse ( ) const
inline
Returns
the inverse transformation

Definition at line 107 of file Transpositions.h.

108  { return Transpose<TranspositionsBase>(derived()); }

◆ operator()() [1/2]

template<typename Derived >
StorageIndex& Eigen::TranspositionsBase< Derived >::operator() ( Index  i)
inline

Direct access to the underlying index vector

Definition at line 59 of file Transpositions.h.

59 { return indices()(i); }

◆ operator()() [2/2]

template<typename Derived >
const StorageIndex& Eigen::TranspositionsBase< Derived >::operator() ( Index  i) const
inline

Direct access to the underlying index vector

Definition at line 57 of file Transpositions.h.

57 { return indices()(i); }

◆ operator=()

template<typename Derived >
template<typename OtherDerived >
Derived& Eigen::TranspositionsBase< Derived >::operator= ( const TranspositionsBase< OtherDerived > &  other)
inline

Copies the other transpositions into *this

Definition at line 35 of file Transpositions.h.

36  {
37  indices() = other.indices();
38  return derived();
39  }

◆ operator[]() [1/2]

template<typename Derived >
StorageIndex& Eigen::TranspositionsBase< Derived >::operator[] ( Index  i)
inline

Direct access to the underlying index vector

Definition at line 63 of file Transpositions.h.

63 { return indices()(i); }

◆ operator[]() [2/2]

template<typename Derived >
const StorageIndex& Eigen::TranspositionsBase< Derived >::operator[] ( Index  i) const
inline

Direct access to the underlying index vector

Definition at line 61 of file Transpositions.h.

61 { return indices()(i); }

◆ resize()

template<typename Derived >
void Eigen::TranspositionsBase< Derived >::resize ( Index  newSize)
inline

Resizes to given size.

Definition at line 73 of file Transpositions.h.

74  {
75  indices().resize(newSize);
76  }

◆ rows()

template<typename Derived >
Index Eigen::TranspositionsBase< Derived >::rows ( void  ) const
inline
Returns
the number of rows of the equivalent permutation matrix

Definition at line 46 of file Transpositions.h.

46 { return indices().size(); }

◆ setIdentity()

template<typename Derived >
void Eigen::TranspositionsBase< Derived >::setIdentity ( )
inline

Sets *this to represents an identity transformation

Definition at line 79 of file Transpositions.h.

80  {
81  for(StorageIndex i = 0; i < indices().size(); ++i)
82  coeffRef(i) = i;
83  }
IndicesType::Scalar StorageIndex
StorageIndex & coeffRef(Index i)

◆ size()

template<typename Derived >
Index Eigen::TranspositionsBase< Derived >::size ( ) const
inline
Returns
the number of transpositions

Definition at line 43 of file Transpositions.h.

43 { return indices().size(); }

◆ transpose()

template<typename Derived >
Transpose<TranspositionsBase> Eigen::TranspositionsBase< Derived >::transpose ( ) const
inline
Returns
the tranpose transformation

Definition at line 111 of file Transpositions.h.

112  { return Transpose<TranspositionsBase>(derived()); }

The documentation for this class was generated from the following file: