MOAB  4.9.3pre
Eigen::internal::mapbase_evaluator< Derived, PlainObjectType > Struct Template Reference

#include <CoreEvaluators.h>

Inheritance diagram for Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >:
Collaboration diagram for Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >:

List of all members.

Public Types

enum  { IsRowMajor = XprType::RowsAtCompileTime, ColsAtCompileTime = XprType::ColsAtCompileTime, CoeffReadCost = NumTraits<Scalar>::ReadCost }
typedef Derived XprType
typedef XprType::PointerType PointerType
typedef XprType::Scalar Scalar
typedef XprType::CoeffReturnType CoeffReturnType

Public Member Functions

EIGEN_DEVICE_FUNC mapbase_evaluator (const XprType &map)
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
CoeffReturnType 
coeff (Index row, Index col) const
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
CoeffReturnType 
coeff (Index index) const
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE Scalar
coeffRef (Index row, Index col)
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE Scalar
coeffRef (Index index)
template<int LoadMode, typename PacketType >
EIGEN_STRONG_INLINE PacketType packet (Index row, Index col) const
template<int LoadMode, typename PacketType >
EIGEN_STRONG_INLINE PacketType packet (Index index) const
template<int StoreMode, typename PacketType >
EIGEN_STRONG_INLINE void writePacket (Index row, Index col, const PacketType &x)
template<int StoreMode, typename PacketType >
EIGEN_STRONG_INLINE void writePacket (Index index, const PacketType &x)

Protected Attributes

PointerType m_data
const XprTypem_xpr

Detailed Description

template<typename Derived, typename PlainObjectType>
struct Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >

Definition at line 592 of file CoreEvaluators.h.


Member Typedef Documentation

template<typename Derived, typename PlainObjectType>
typedef XprType::CoeffReturnType Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::CoeffReturnType

Definition at line 597 of file CoreEvaluators.h.

template<typename Derived, typename PlainObjectType>
typedef XprType::PointerType Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::PointerType

Definition at line 595 of file CoreEvaluators.h.

template<typename Derived, typename PlainObjectType>
typedef XprType::Scalar Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::Scalar

Member Enumeration Documentation

template<typename Derived, typename PlainObjectType>
anonymous enum
Enumerator:
IsRowMajor 
ColsAtCompileTime 
CoeffReadCost 

Definition at line 599 of file CoreEvaluators.h.


Constructor & Destructor Documentation

template<typename Derived, typename PlainObjectType>
EIGEN_DEVICE_FUNC Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::mapbase_evaluator ( const XprType map) [inline, explicit]

Definition at line 605 of file CoreEvaluators.h.

    : m_data(const_cast<PointerType>(map.data())),  
      m_xpr(map)
  {
    EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(evaluator<Derived>::Flags&PacketAccessBit, internal::inner_stride_at_compile_time<Derived>::ret==1),
                        PACKET_ACCESS_REQUIRES_TO_HAVE_INNER_STRIDE_FIXED_TO_1);
    EIGEN_INTERNAL_CHECK_COST_VALUE(CoeffReadCost);
  }

Member Function Documentation

template<typename Derived, typename PlainObjectType>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::coeff ( Index  row,
Index  col 
) const [inline]

Definition at line 615 of file CoreEvaluators.h.

  {
    return m_data[col * m_xpr.colStride() + row * m_xpr.rowStride()];
  }
template<typename Derived, typename PlainObjectType>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::coeff ( Index  index) const [inline]

Definition at line 621 of file CoreEvaluators.h.

  {
    return m_data[index * m_xpr.innerStride()];
  }
template<typename Derived, typename PlainObjectType>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::coeffRef ( Index  row,
Index  col 
) [inline]

Definition at line 627 of file CoreEvaluators.h.

  {
    return m_data[col * m_xpr.colStride() + row * m_xpr.rowStride()];
  }
template<typename Derived, typename PlainObjectType>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::coeffRef ( Index  index) [inline]

Definition at line 633 of file CoreEvaluators.h.

  {
    return m_data[index * m_xpr.innerStride()];
  }
template<typename Derived, typename PlainObjectType>
template<int LoadMode, typename PacketType >
EIGEN_STRONG_INLINE PacketType Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::packet ( Index  row,
Index  col 
) const [inline]

Definition at line 640 of file CoreEvaluators.h.

  {
    PointerType ptr = m_data + row * m_xpr.rowStride() + col * m_xpr.colStride();
    return internal::ploadt<PacketType, LoadMode>(ptr);
  }
template<typename Derived, typename PlainObjectType>
template<int LoadMode, typename PacketType >
EIGEN_STRONG_INLINE PacketType Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::packet ( Index  index) const [inline]

Definition at line 648 of file CoreEvaluators.h.

  {
    return internal::ploadt<PacketType, LoadMode>(m_data + index * m_xpr.innerStride());
  }
template<typename Derived, typename PlainObjectType>
template<int StoreMode, typename PacketType >
EIGEN_STRONG_INLINE void Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::writePacket ( Index  row,
Index  col,
const PacketType &  x 
) [inline]

Definition at line 655 of file CoreEvaluators.h.

  {
    PointerType ptr = m_data + row * m_xpr.rowStride() + col * m_xpr.colStride();
    return internal::pstoret<Scalar, PacketType, StoreMode>(ptr, x);
  }
template<typename Derived, typename PlainObjectType>
template<int StoreMode, typename PacketType >
EIGEN_STRONG_INLINE void Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::writePacket ( Index  index,
const PacketType &  x 
) [inline]

Definition at line 663 of file CoreEvaluators.h.

  {
    internal::pstoret<Scalar, PacketType, StoreMode>(m_data + index * m_xpr.innerStride(), x);
  }

Member Data Documentation

template<typename Derived, typename PlainObjectType>
PointerType Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::m_data [protected]

Definition at line 669 of file CoreEvaluators.h.

template<typename Derived, typename PlainObjectType>
const XprType& Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::m_xpr [protected]

Definition at line 670 of file CoreEvaluators.h.


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