Public Types | Public Member Functions | Protected Attributes
TranspositionsWrapper< _IndicesType > Class Template Reference

#include <Transpositions.h>

+ Inheritance diagram for TranspositionsWrapper< _IndicesType >:

List of all members.

Public Types

typedef TranspositionsBase
< TranspositionsWrapper
Base
typedef IndicesType::Scalar Index
typedef Traits::IndicesType IndicesType

Public Member Functions

const Indexcoeff (Index i) const
IndexcoeffRef (Index i)
TranspositionsWrapper
< _IndicesType > & 
derived ()
const TranspositionsWrapper
< _IndicesType > & 
derived () const
const IndicesTypeindices () const
IndicesTypeindices ()
Transpose< TranspositionsBaseinverse () const
const Indexoperator() (Index i) const
Indexoperator() (Index i)
template<typename OtherDerived >
TranspositionsWrapperoperator= (const TranspositionsBase< OtherDerived > &other)
const Indexoperator[] (Index i) const
Indexoperator[] (Index i)
void resize (int size)
void setIdentity ()
Index size () const
Transpose< TranspositionsBasetranspose () const
 TranspositionsWrapper (IndicesType &indices)

Protected Attributes

const IndicesType::Nested m_indices

Member Typedef Documentation

typedef IndicesType::Scalar Index
typedef Traits::IndicesType IndicesType

Constructor & Destructor Documentation

TranspositionsWrapper ( IndicesType indices)
inline

Member Function Documentation

const Index& coeff ( Index  i) const
inlineinherited

Direct access to the underlying index vector

Index& coeffRef ( Index  i)
inlineinherited

Direct access to the underlying index vector

TranspositionsWrapper< _IndicesType > & derived ( )
inlineinherited
const TranspositionsWrapper< _IndicesType > & derived ( ) const
inlineinherited
const IndicesType& indices ( ) const
inline
IndicesType& indices ( )
inline
Returns:
a reference to the stored array representing the transpositions.

Reimplemented from TranspositionsBase< TranspositionsWrapper< _IndicesType > >.

References TranspositionsWrapper< _IndicesType >::m_indices.

Transpose<TranspositionsBase> inverse ( ) const
inlineinherited
Returns:
the inverse transformation
const Index& operator() ( Index  i) const
inlineinherited

Direct access to the underlying index vector

Index& operator() ( Index  i)
inlineinherited

Direct access to the underlying index vector

TranspositionsWrapper& operator= ( const TranspositionsBase< OtherDerived > &  other)
inline

Copies the other transpositions into *this

Reimplemented from TranspositionsBase< TranspositionsWrapper< _IndicesType > >.

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

const Index& operator[] ( Index  i) const
inlineinherited

Direct access to the underlying index vector

Index& operator[] ( Index  i)
inlineinherited

Direct access to the underlying index vector

void resize ( int  size)
inlineinherited

Resizes to given size.

void setIdentity ( )
inlineinherited

Sets *this to represents an identity transformation

Index size ( ) const
inlineinherited
Returns:
the number of transpositions
Transpose<TranspositionsBase> transpose ( ) const
inlineinherited
Returns:
the tranpose transformation

Member Data Documentation

const IndicesType::Nested m_indices
protected

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