Eigen::TranspositionsBase< Derived > Class Template Reference

#include <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

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

Private Types

typedef internal::traits< Derived > Traits
 

Member Typedef Documentation

◆ Index

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

◆ 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 >
EIGEN_DEVICE_FUNC const StorageIndex& Eigen::TranspositionsBase< Derived >::coeff ( Index  i) const
inline

Direct access to the underlying index vector

45 { return indices().coeff(i); }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
EIGEN_DEVICE_FUNC const IndicesType & indices() const
Definition: Transpositions.h:58

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

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

◆ coeffRef()

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

Direct access to the underlying index vector

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

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

Referenced by Eigen::LDLT< MatrixType_, UpLo_ >::rankUpdate(), and Eigen::TranspositionsBase< Derived >::setIdentity().

◆ cols()

◆ derived() [1/2]

◆ derived() [2/2]

template<typename Derived >
EIGEN_DEVICE_FUNC const Derived& Eigen::TranspositionsBase< Derived >::derived ( ) const
inline
28 { return *static_cast<const Derived*>(this); }

◆ indices() [1/2]

template<typename Derived >
EIGEN_DEVICE_FUNC IndicesType& Eigen::TranspositionsBase< Derived >::indices ( )
inline
Returns
a reference to the stored array representing the transpositions.
60 { return derived().indices(); }
EIGEN_DEVICE_FUNC Derived & derived()
Definition: Transpositions.h:27

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

◆ indices() [2/2]

◆ inverse()

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

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

◆ operator()() [1/2]

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

Direct access to the underlying index vector

51 { return indices()(i); }

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

◆ operator()() [2/2]

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

Direct access to the underlying index vector

49 { return indices()(i); }

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

◆ operator=()

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

◆ operator[]() [1/2]

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

Direct access to the underlying index vector

55 { return indices()(i); }

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

◆ operator[]() [2/2]

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

Direct access to the underlying index vector

53 { return indices()(i); }

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

◆ resize()

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

◆ rows()

◆ setIdentity()

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

Sets *this to represents an identity transformation

66  {
67  for (StorageIndex i = 0; i < indices().size(); ++i) coeffRef(i) = i;
68  }
IndicesType::Scalar StorageIndex
Definition: Transpositions.h:24
StorageIndex & coeffRef(Index i)
Definition: Transpositions.h:47

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

◆ size()

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

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

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

◆ transpose()

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

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

Referenced by Eigen::LDLT< MatrixType_, UpLo_ >::_solve_impl_transposed(), and Eigen::LDLT< MatrixType_, UpLo_ >::reconstructedMatrix().


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