Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::TranspositionsWrapper< _IndicesType > Class Template Reference

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

+ Inheritance diagram for Eigen::TranspositionsWrapper< _IndicesType >:
+ Collaboration diagram for Eigen::TranspositionsWrapper< _IndicesType >:

Public Types

typedef TranspositionsBase< TranspositionsWrapperBase
 
typedef Traits::IndicesType IndicesType
 
typedef IndicesType::Scalar StorageIndex
 
typedef Eigen::Index Index
 

Public Member Functions

 TranspositionsWrapper (IndicesType &indices)
 
template<typename OtherDerived >
TranspositionsWrapperoperator= (const TranspositionsBase< OtherDerived > &other)
 
TranspositionsWrapperoperator= (const TranspositionsWrapper &other)
 
const IndicesTypeindices () const
 
IndicesTypeindices ()
 
TranspositionsWrapper< _IndicesType > & derived ()
 
const TranspositionsWrapper< _IndicesType > & derived () const
 
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)
 
void resize (Index newSize)
 
void setIdentity ()
 
Transpose< TranspositionsBaseinverse () const
 
Transpose< TranspositionsBasetranspose () const
 

Protected Attributes

IndicesType::Nested m_indices
 

Private Types

typedef internal::traits< TranspositionsWrapperTraits
 

Detailed Description

template<typename _IndicesType>
class Eigen::TranspositionsWrapper< _IndicesType >

Member Typedef Documentation

◆ Base

template<typename _IndicesType >
typedef TranspositionsBase<TranspositionsWrapper> Eigen::TranspositionsWrapper< _IndicesType >::Base

◆ Index

typedef Eigen::Index Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::Index
inherited

◆ IndicesType

template<typename _IndicesType >
typedef Traits::IndicesType Eigen::TranspositionsWrapper< _IndicesType >::IndicesType

◆ StorageIndex

template<typename _IndicesType >
typedef IndicesType::Scalar Eigen::TranspositionsWrapper< _IndicesType >::StorageIndex

◆ Traits

template<typename _IndicesType >
typedef internal::traits<TranspositionsWrapper> Eigen::TranspositionsWrapper< _IndicesType >::Traits
private

Constructor & Destructor Documentation

◆ TranspositionsWrapper()

template<typename _IndicesType >
Eigen::TranspositionsWrapper< _IndicesType >::TranspositionsWrapper ( IndicesType indices)
inlineexplicit
300 {}
const IndicesType & indices() const
Definition Transpositions.h:321
IndicesType::Nested m_indices
Definition Transpositions.h:328

Member Function Documentation

◆ coeff()

const StorageIndex & Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::coeff ( Index  i) const
inlineinherited

Direct access to the underlying index vector

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

◆ coeffRef()

StorageIndex & Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::coeffRef ( Index  i)
inlineinherited

Direct access to the underlying index vector

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

◆ cols()

Index Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::cols ( ) const
inlineinherited
Returns
the number of columns of the equivalent permutation matrix
53{ return indices().size(); }

◆ derived() [1/2]

TranspositionsWrapper< _IndicesType > & Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::derived ( )
inlineinherited
26{ return *static_cast<Derived*>(this); }

◆ derived() [2/2]

const TranspositionsWrapper< _IndicesType > & Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::derived ( ) const
inlineinherited
27{ return *static_cast<const Derived*>(this); }

◆ indices() [1/2]

template<typename _IndicesType >
IndicesType & Eigen::TranspositionsWrapper< _IndicesType >::indices ( )
inline
Returns
a reference to the stored array representing the transpositions.
324{ return m_indices; }

References Eigen::TranspositionsWrapper< _IndicesType >::m_indices.

◆ indices() [2/2]

template<typename _IndicesType >
const IndicesType & Eigen::TranspositionsWrapper< _IndicesType >::indices ( ) const
inline

const version of indices().

321{ return m_indices; }

References Eigen::TranspositionsWrapper< _IndicesType >::m_indices.

◆ inverse()

Transpose< TranspositionsBase > Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::inverse ( ) const
inlineinherited
Returns
the inverse transformation
109 { return Transpose<TranspositionsBase>(derived()); }
TranspositionsWrapper< _IndicesType > & derived()
Definition Transpositions.h:26

◆ operator()() [1/2]

StorageIndex & Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::operator() ( Index  i)
inlineinherited

Direct access to the underlying index vector

62{ return indices()(i); }

◆ operator()() [2/2]

const StorageIndex & Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::operator() ( Index  i) const
inlineinherited

Direct access to the underlying index vector

60{ return indices()(i); }

◆ operator=() [1/2]

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

Copies the other transpositions into *this

305 {
306 return Base::operator=(other);
307 }
Derived & operator=(const TranspositionsBase< OtherDerived > &other)
Definition Transpositions.h:31

References Eigen::TranspositionsBase< Derived >::operator=().

+ Here is the call graph for this function:

◆ operator=() [2/2]

template<typename _IndicesType >
TranspositionsWrapper & Eigen::TranspositionsWrapper< _IndicesType >::operator= ( const TranspositionsWrapper< _IndicesType > &  other)
inline

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

314 {
315 m_indices = other.m_indices;
316 return *this;
317 }

References Eigen::TranspositionsWrapper< _IndicesType >::m_indices.

◆ operator[]() [1/2]

StorageIndex & Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::operator[] ( Index  i)
inlineinherited

Direct access to the underlying index vector

66{ return indices()(i); }

◆ operator[]() [2/2]

const StorageIndex & Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::operator[] ( Index  i) const
inlineinherited

Direct access to the underlying index vector

64{ return indices()(i); }

◆ resize()

void Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::resize ( Index  newSize)
inlineinherited

Resizes to given size.

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

◆ rows()

Index Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::rows ( ) const
inlineinherited
Returns
the number of rows of the equivalent permutation matrix
51{ return indices().size(); }

◆ setIdentity()

void Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::setIdentity ( )
inlineinherited

Sets *this to represents an identity transformation

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

◆ size()

Index Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::size ( ) const
inlineinherited
Returns
the number of transpositions
49{ return indices().size(); }

◆ transpose()

Transpose< TranspositionsBase > Eigen::TranspositionsBase< TranspositionsWrapper< _IndicesType > >::transpose ( ) const
inlineinherited
Returns
the tranpose transformation
113 { return Transpose<TranspositionsBase>(derived()); }

Member Data Documentation

◆ m_indices


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