Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::internal::mapbase_evaluator< Derived, PlainObjectType > Struct Template Reference

#include <src/eigen/Eigen/src/Core/CoreEvaluators.h>

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

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
 
enum  
 
typedef traits< Derived > ExpressionTraits
 

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 ScalarcoeffRef (Index row, Index col)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ScalarcoeffRef (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 Member Functions

EIGEN_DEVICE_FUNC Index rowStride () const
 
EIGEN_DEVICE_FUNC Index colStride () const
 

Protected Attributes

PointerType m_data
 
const internal::variable_if_dynamic< Index, XprType::InnerStrideAtCompileTime > m_innerStride
 
const internal::variable_if_dynamic< Index, XprType::OuterStrideAtCompileTime > m_outerStride
 

Detailed Description

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

Member Typedef Documentation

◆ CoeffReturnType

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

◆ ExpressionTraits

typedef traits<Derived > Eigen::internal::evaluator_base< Derived >::ExpressionTraits
inherited

◆ PointerType

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

◆ Scalar

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

◆ XprType

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
114 {
115 Alignment = 0
116 };
@ Alignment
Definition CoreEvaluators.h:115

◆ anonymous enum

template<typename Derived , typename PlainObjectType >
anonymous enum
Enumerator
IsRowMajor 
ColsAtCompileTime 
CoeffReadCost 
815 {
816 IsRowMajor = XprType::RowsAtCompileTime,
817 ColsAtCompileTime = XprType::ColsAtCompileTime,
818 CoeffReadCost = NumTraits<Scalar>::ReadCost
819 };
@ IsRowMajor
Definition CoreEvaluators.h:816
@ CoeffReadCost
Definition CoreEvaluators.h:818
@ ColsAtCompileTime
Definition CoreEvaluators.h:817

Constructor & Destructor Documentation

◆ mapbase_evaluator()

template<typename Derived , typename PlainObjectType >
EIGEN_DEVICE_FUNC Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::mapbase_evaluator ( const XprType map)
inlineexplicit
822 : m_data(const_cast<PointerType>(map.data())),
823 m_innerStride(map.innerStride()),
824 m_outerStride(map.outerStride())
825 {
827 PACKET_ACCESS_REQUIRES_TO_HAVE_INNER_STRIDE_FIXED_TO_1);
829 }
#define EIGEN_IMPLIES(a, b)
Definition Macros.h:902
#define EIGEN_INTERNAL_CHECK_COST_VALUE(C)
Definition StaticAssert.h:215
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition StaticAssert.h:124
const unsigned int PacketAccessBit
Definition Constants.h:89
@ ret
Definition DenseCoeffsBase.h:656
PointerType m_data
Definition CoreEvaluators.h:890
XprType::PointerType PointerType
Definition CoreEvaluators.h:811
const internal::variable_if_dynamic< Index, XprType::InnerStrideAtCompileTime > m_innerStride
Definition CoreEvaluators.h:891
const internal::variable_if_dynamic< Index, XprType::OuterStrideAtCompileTime > m_outerStride
Definition CoreEvaluators.h:892

References EIGEN_IMPLIES, EIGEN_INTERNAL_CHECK_COST_VALUE, EIGEN_STATIC_ASSERT, and Eigen::PacketAccessBit.

Member Function Documentation

◆ coeff() [1/2]

template<typename Derived , typename PlainObjectType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::coeff ( Index  index) const
inline
839 {
840 return m_data[index * m_innerStride.value()];
841 }
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T value()
Definition XprHelper.h:111

◆ coeff() [2/2]

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
833 {
834 return m_data[col * colStride() + row * rowStride()];
835 }
EIGEN_DEVICE_FUNC RowXpr row(Index i)
This is the const version of row(). *‍/.
Definition BlockMethods.h:859
EIGEN_DEVICE_FUNC ColXpr col(Index i)
This is the const version of col().
Definition BlockMethods.h:838
EIGEN_DEVICE_FUNC Index rowStride() const
Definition CoreEvaluators.h:886
EIGEN_DEVICE_FUNC Index colStride() const
Definition CoreEvaluators.h:888

References col(), and row().

+ Here is the call graph for this function:

◆ coeffRef() [1/2]

template<typename Derived , typename PlainObjectType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::coeffRef ( Index  index)
inline
851 {
852 return m_data[index * m_innerStride.value()];
853 }

◆ coeffRef() [2/2]

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

References col(), and row().

+ Here is the call graph for this function:

◆ colStride()

template<typename Derived , typename PlainObjectType >
EIGEN_DEVICE_FUNC Index Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::colStride ( ) const
inlineprotected
888{ return XprType::IsRowMajor ? m_innerStride.value() : m_outerStride.value(); }

◆ packet() [1/2]

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
866 {
867 return internal::ploadt<PacketType, LoadMode>(m_data + index * m_innerStride.value());
868 }

◆ packet() [2/2]

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
858 {
859 PointerType ptr = m_data + row * rowStride() + col * colStride();
860 return internal::ploadt<PacketType, LoadMode>(ptr);
861 }

References col(), and row().

+ Here is the call graph for this function:

◆ rowStride()

template<typename Derived , typename PlainObjectType >
EIGEN_DEVICE_FUNC Index Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::rowStride ( ) const
inlineprotected
886{ return XprType::IsRowMajor ? m_outerStride.value() : m_innerStride.value(); }

◆ writePacket() [1/2]

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
881 {
882 internal::pstoret<Scalar, PacketType, StoreMode>(m_data + index * m_innerStride.value(), x);
883 }

◆ writePacket() [2/2]

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
873 {
874 PointerType ptr = m_data + row * rowStride() + col * colStride();
875 return internal::pstoret<Scalar, PacketType, StoreMode>(ptr, x);
876 }

References col(), and row().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_data

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

◆ m_innerStride

template<typename Derived , typename PlainObjectType >
const internal::variable_if_dynamic<Index, XprType::InnerStrideAtCompileTime> Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::m_innerStride
protected

◆ m_outerStride

template<typename Derived , typename PlainObjectType >
const internal::variable_if_dynamic<Index, XprType::OuterStrideAtCompileTime> Eigen::internal::mapbase_evaluator< Derived, PlainObjectType >::m_outerStride
protected

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