Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::TranspositionsBase< Derived > Class Template Reference

#include <src/eigen/Eigen/src/Core/Transpositions.h>

+ Inheritance diagram for Eigen::TranspositionsBase< Derived >:

Public Types

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

Public Member Functions

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

Private Types

typedef internal::traits< Derived > Traits
 

Detailed Description

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

Member Typedef Documentation

◆ Index

template<typename Derived >
typedef Eigen::Index Eigen::TranspositionsBase< Derived >::Index

◆ IndicesType

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

◆ StorageIndex

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

◆ Traits

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

Member Function Documentation

◆ coeff()

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

Direct access to the underlying index vector

56{ return indices().coeff(i); }
const IndicesType & indices() const
Definition Transpositions.h:69

References Eigen::TranspositionsBase< Derived >::indices().

Referenced by Eigen::PermutationBase< Derived >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coeffRef()

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

Direct access to the underlying index vector

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

References Eigen::TranspositionsBase< Derived >::indices().

Referenced by Eigen::TranspositionsBase< Derived >::setIdentity().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cols()

template<typename Derived >
Index Eigen::TranspositionsBase< Derived >::cols ( ) const
inline
Returns
the number of columns of the equivalent permutation matrix
53{ return indices().size(); }

References Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ derived() [1/2]

◆ derived() [2/2]

template<typename Derived >
const Derived & Eigen::TranspositionsBase< Derived >::derived ( ) const
inline
27{ 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.
71{ return derived().indices(); }
Derived & derived()
Definition Transpositions.h:26

References Eigen::TranspositionsBase< Derived >::derived().

+ Here is the call graph for this function:

◆ indices() [2/2]

◆ inverse()

template<typename Derived >
Transpose< TranspositionsBase > Eigen::TranspositionsBase< Derived >::inverse ( ) const
inline
Returns
the inverse transformation
109 { return Transpose<TranspositionsBase>(derived()); }

References Eigen::TranspositionsBase< Derived >::derived().

+ Here is the call graph for this function:

◆ operator()() [1/2]

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

Direct access to the underlying index vector

62{ return indices()(i); }

References Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ operator()() [2/2]

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

Direct access to the underlying index vector

60{ return indices()(i); }

References Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ operator=() [1/2]

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

This is a special case of the templated operator=. Its purpose is to prevent a default operator= from hiding the templated operator=.

42 {
43 indices() = other.indices();
44 return derived();
45 }

References Eigen::TranspositionsBase< Derived >::derived(), and Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ operator=() [2/2]

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

Copies the other transpositions into *this

32 {
33 indices() = other.indices();
34 return derived();
35 }

References Eigen::TranspositionsBase< Derived >::derived(), and Eigen::TranspositionsBase< Derived >::indices().

Referenced by Eigen::Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::operator=(), and Eigen::TranspositionsWrapper< _IndicesType >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator[]() [1/2]

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

Direct access to the underlying index vector

66{ return indices()(i); }

References Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ operator[]() [2/2]

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

Direct access to the underlying index vector

64{ return indices()(i); }

References Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ resize()

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

Resizes to given size.

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

References Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ rows()

template<typename Derived >
Index Eigen::TranspositionsBase< Derived >::rows ( ) const
inline
Returns
the number of rows of the equivalent permutation matrix
51{ return indices().size(); }

References Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ setIdentity()

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

Sets *this to represents an identity transformation

81 {
82 for(StorageIndex i = 0; i < indices().size(); ++i)
83 coeffRef(i) = i;
84 }
IndicesType::Scalar StorageIndex
Definition Transpositions.h:23
StorageIndex & coeffRef(Index i)
Definition Transpositions.h:58

References Eigen::TranspositionsBase< Derived >::coeffRef(), and Eigen::TranspositionsBase< Derived >::indices().

+ Here is the call graph for this function:

◆ size()

template<typename Derived >
Index Eigen::TranspositionsBase< Derived >::size ( ) const
inline
Returns
the number of transpositions
49{ return indices().size(); }

References Eigen::TranspositionsBase< Derived >::indices().

Referenced by Eigen::PermutationBase< Derived >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ transpose()

template<typename Derived >
Transpose< TranspositionsBase > Eigen::TranspositionsBase< Derived >::transpose ( ) const
inline
Returns
the tranpose transformation
113 { return Transpose<TranspositionsBase>(derived()); }

References Eigen::TranspositionsBase< Derived >::derived().

+ Here is the call graph for this function:

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