20 template <
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
21 struct traits<
Map<PlainObjectType, MapOptions, StrideType> > :
public traits<PlainObjectType> {
25 ? PlainObjectType::ColsAtCompileTime
26 : PlainObjectType::RowsAtCompileTime,
28 InnerStrideAtCompileTime = StrideType::InnerStrideAtCompileTime == 0
29 ?
int(PlainObjectType::InnerStrideAtCompileTime)
30 :
int(StrideType::InnerStrideAtCompileTime),
31 OuterStrideAtCompileTime = StrideType::OuterStrideAtCompileTime == 0
32 ? (InnerStrideAtCompileTime ==
Dynamic || PlainObjectTypeInnerSize ==
Dynamic
34 :
int(InnerStrideAtCompileTime) *
int(PlainObjectTypeInnerSize))
35 :
int(StrideType::OuterStrideAtCompileTime),
95 template <
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
96 class Map :
public MapBase<Map<PlainObjectType, MapOptions, StrideType> > {
106 return StrideType::InnerStrideAtCompileTime != 0 ? m_stride.inner() : 1;
110 return StrideType::OuterStrideAtCompileTime != 0 ? m_stride.outer()
113 : IsVectorAtCompileTime ? (this->
size() * innerStride())
115 : (this->
rows() * innerStride());
124 :
Base(cast_to_pointer_type(dataPtr)), m_stride(stride) {}
133 :
Base(cast_to_pointer_type(dataPtr),
size), m_stride(stride) {}
143 :
Base(cast_to_pointer_type(dataPtr),
rows,
cols), m_stride(stride) {}
#define EIGEN_CONSTEXPR
Definition: Macros.h:758
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1171
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
Macro to manually inherit assignment operators. This is necessary, because the implicitly defined ass...
Definition: Macros.h:1126
int rows
Definition: Tutorial_commainit_02.cpp:1
int cols
Definition: Tutorial_commainit_02.cpp:1
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
Definition: ForwardDeclarations.h:150
A matrix or vector expression mapping an existing array of data.
Definition: Map.h:96
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index innerStride() const
Definition: Map.h:105
Base::PointerType PointerType
Definition: Map.h:101
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index outerStride() const
Definition: Map.h:109
StrideType m_stride
Definition: Map.h:148
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, Index size, const StrideType &stride=StrideType())
Definition: Map.h:132
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, Index rows, Index cols, const StrideType &stride=StrideType())
Definition: Map.h:142
MapBase< Map > Base
Definition: Map.h:98
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, const StrideType &stride=StrideType())
Definition: Map.h:123
PointerType PointerArgType
Definition: Map.h:102
@ AlignedMask
Definition: Constants.h:241
const unsigned int LvalueBit
Definition: Constants.h:148
const unsigned int RowMajorBit
Definition: Constants.h:70
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
squared absolute value
Definition: GlobalFunctions.h:87
const unsigned int NestByRefBit
Definition: Constants.h:173
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
const int Dynamic
Definition: Constants.h:25
Extend namespace for flags.
Definition: fsi_chan_precond_driver.cc:56
Definition: Eigen_Colamd.h:49
Definition: XprHelper.h:819
traits< PlainObjectType > TraitsBase
Definition: Map.h:22
Definition: ForwardDeclarations.h:21