MOAB
4.9.3pre
|
#include <Transpositions.h>
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 StorageIndex & | coeff (Index i) const |
StorageIndex & | coeffRef (Index i) |
const StorageIndex & | operator() (Index i) const |
StorageIndex & | operator() (Index i) |
const StorageIndex & | operator[] (Index i) const |
StorageIndex & | operator[] (Index i) |
const IndicesType & | indices () const |
IndicesType & | indices () |
void | resize (Index newSize) |
void | setIdentity () |
Transpose< TranspositionsBase > | inverse () const |
Transpose< TranspositionsBase > | transpose () const |
Private Types | |
typedef internal::traits< Derived > | Traits |
Definition at line 16 of file Transpositions.h.
typedef Eigen::Index Eigen::TranspositionsBase< Derived >::Index |
Definition at line 24 of file Transpositions.h.
typedef Traits::IndicesType Eigen::TranspositionsBase< Derived >::IndicesType |
Reimplemented in Eigen::TranspositionsWrapper< _IndicesType >, Eigen::Map< Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, PacketAccess >, Eigen::Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, and Eigen::Transpositions< RowsAtCompileTime, MaxRowsAtCompileTime >.
Definition at line 22 of file Transpositions.h.
typedef IndicesType::Scalar Eigen::TranspositionsBase< Derived >::StorageIndex |
Reimplemented in Eigen::TranspositionsWrapper< _IndicesType >, Eigen::Map< Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, PacketAccess >, Eigen::Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, and Eigen::Transpositions< RowsAtCompileTime, MaxRowsAtCompileTime >.
Definition at line 23 of file Transpositions.h.
typedef internal::traits<Derived> Eigen::TranspositionsBase< Derived >::Traits [private] |
Reimplemented in Eigen::TranspositionsWrapper< _IndicesType >, Eigen::Map< Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, PacketAccess >, Eigen::Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, and Eigen::Transpositions< RowsAtCompileTime, MaxRowsAtCompileTime >.
Definition at line 18 of file Transpositions.h.
const StorageIndex& Eigen::TranspositionsBase< Derived >::coeff | ( | Index | i | ) | const [inline] |
Direct access to the underlying index vector
Definition at line 56 of file Transpositions.h.
{ return indices().coeff(i); }
StorageIndex& Eigen::TranspositionsBase< Derived >::coeffRef | ( | Index | i | ) | [inline] |
Direct access to the underlying index vector
Definition at line 58 of file Transpositions.h.
{ return indices().coeffRef(i); }
Index Eigen::TranspositionsBase< Derived >::cols | ( | void | ) | const [inline] |
Definition at line 53 of file Transpositions.h.
{ return indices().size(); }
Derived& Eigen::TranspositionsBase< Derived >::derived | ( | ) | [inline] |
Definition at line 26 of file Transpositions.h.
{ return *static_cast<Derived*>(this); }
const Derived& Eigen::TranspositionsBase< Derived >::derived | ( | ) | const [inline] |
Definition at line 27 of file Transpositions.h.
{ return *static_cast<const Derived*>(this); }
const IndicesType& Eigen::TranspositionsBase< Derived >::indices | ( | ) | const [inline] |
const version of indices().
Reimplemented in Eigen::TranspositionsWrapper< _IndicesType >, Eigen::Map< Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, PacketAccess >, Eigen::Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, and Eigen::Transpositions< RowsAtCompileTime, MaxRowsAtCompileTime >.
Definition at line 69 of file Transpositions.h.
{ return derived().indices(); }
IndicesType& Eigen::TranspositionsBase< Derived >::indices | ( | ) | [inline] |
Reimplemented in Eigen::TranspositionsWrapper< _IndicesType >, Eigen::Map< Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, PacketAccess >, Eigen::Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, and Eigen::Transpositions< RowsAtCompileTime, MaxRowsAtCompileTime >.
Definition at line 71 of file Transpositions.h.
{ return derived().indices(); }
Transpose<TranspositionsBase> Eigen::TranspositionsBase< Derived >::inverse | ( | ) | const [inline] |
Definition at line 108 of file Transpositions.h.
{ return Transpose<TranspositionsBase>(derived()); }
const StorageIndex& Eigen::TranspositionsBase< Derived >::operator() | ( | Index | i | ) | const [inline] |
Direct access to the underlying index vector
Definition at line 60 of file Transpositions.h.
{ return indices()(i); }
StorageIndex& Eigen::TranspositionsBase< Derived >::operator() | ( | Index | i | ) | [inline] |
Direct access to the underlying index vector
Definition at line 62 of file Transpositions.h.
{ return indices()(i); }
Derived& Eigen::TranspositionsBase< Derived >::operator= | ( | const TranspositionsBase< OtherDerived > & | other | ) | [inline] |
Copies the other transpositions into *this
Reimplemented in Eigen::TranspositionsWrapper< _IndicesType >, Eigen::Map< Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, PacketAccess >, Eigen::Transpositions< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >, and Eigen::Transpositions< RowsAtCompileTime, MaxRowsAtCompileTime >.
Definition at line 31 of file Transpositions.h.
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=.
Definition at line 41 of file Transpositions.h.
const StorageIndex& Eigen::TranspositionsBase< Derived >::operator[] | ( | Index | i | ) | const [inline] |
Direct access to the underlying index vector
Definition at line 64 of file Transpositions.h.
{ return indices()(i); }
StorageIndex& Eigen::TranspositionsBase< Derived >::operator[] | ( | Index | i | ) | [inline] |
Direct access to the underlying index vector
Definition at line 66 of file Transpositions.h.
{ return indices()(i); }
void Eigen::TranspositionsBase< Derived >::resize | ( | Index | newSize | ) | [inline] |
Resizes to given size.
Definition at line 74 of file Transpositions.h.
{ indices().resize(newSize); }
Index Eigen::TranspositionsBase< Derived >::rows | ( | void | ) | const [inline] |
Definition at line 51 of file Transpositions.h.
{ return indices().size(); }
void Eigen::TranspositionsBase< Derived >::setIdentity | ( | ) | [inline] |
Sets *this
to represents an identity transformation
Definition at line 80 of file Transpositions.h.
{ for(StorageIndex i = 0; i < indices().size(); ++i) coeffRef(i) = i; }
Index Eigen::TranspositionsBase< Derived >::size | ( | ) | const [inline] |
Definition at line 49 of file Transpositions.h.
{ return indices().size(); }
Transpose<TranspositionsBase> Eigen::TranspositionsBase< Derived >::transpose | ( | ) | const [inline] |
Definition at line 112 of file Transpositions.h.
{ return Transpose<TranspositionsBase>(derived()); }