MOAB  4.9.3pre
Eigen::TranspositionsBase< Derived > Class Template Reference

#include <Transpositions.h>

Inheritance diagram for Eigen::TranspositionsBase< Derived >:

List of all members.

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 >

Definition at line 16 of file Transpositions.h.


Member Typedef Documentation

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

Definition at line 24 of file Transpositions.h.


Member Function Documentation

template<typename Derived>
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); }
template<typename Derived>
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); }
template<typename Derived>
Index Eigen::TranspositionsBase< Derived >::cols ( void  ) const [inline]
Returns:
the number of columns of the equivalent permutation matrix

Definition at line 53 of file Transpositions.h.

{ return indices().size(); }
template<typename Derived>
Derived& Eigen::TranspositionsBase< Derived >::derived ( ) [inline]

Definition at line 26 of file Transpositions.h.

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

Definition at line 27 of file Transpositions.h.

{ return *static_cast<const Derived*>(this); }
template<typename Derived>
Transpose<TranspositionsBase> Eigen::TranspositionsBase< Derived >::inverse ( ) const [inline]
Returns:
the inverse transformation

Definition at line 108 of file Transpositions.h.

    { return Transpose<TranspositionsBase>(derived()); }
template<typename 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); }
template<typename Derived>
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); }
template<typename Derived>
template<typename OtherDerived >
Derived& Eigen::TranspositionsBase< Derived >::operator= ( const TranspositionsBase< OtherDerived > &  other) [inline]
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=.

Definition at line 41 of file Transpositions.h.

    {
      indices() = other.indices();
      return derived();
    }
template<typename Derived>
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); }
template<typename Derived>
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); }
template<typename Derived>
void Eigen::TranspositionsBase< Derived >::resize ( Index  newSize) [inline]

Resizes to given size.

Definition at line 74 of file Transpositions.h.

    {
      indices().resize(newSize);
    }
template<typename Derived>
Index Eigen::TranspositionsBase< Derived >::rows ( void  ) const [inline]
Returns:
the number of rows of the equivalent permutation matrix

Definition at line 51 of file Transpositions.h.

{ return indices().size(); }
template<typename Derived>
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;
    }
template<typename Derived>
Index Eigen::TranspositionsBase< Derived >::size ( ) const [inline]
Returns:
the number of transpositions

Definition at line 49 of file Transpositions.h.

{ return indices().size(); }
template<typename Derived>
Transpose<TranspositionsBase> Eigen::TranspositionsBase< Derived >::transpose ( ) const [inline]
Returns:
the tranpose transformation

Definition at line 112 of file Transpositions.h.

    { return Transpose<TranspositionsBase>(derived()); }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines