19 template<
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
20 struct traits<Map<PlainObjectType, MapOptions, StrideType> >
21 :
public traits<PlainObjectType>
23 typedef traits<PlainObjectType> TraitsBase;
26 ? PlainObjectType::ColsAtCompileTime
27 : PlainObjectType::RowsAtCompileTime,
29 InnerStrideAtCompileTime = StrideType::InnerStrideAtCompileTime == 0
30 ? int(PlainObjectType::InnerStrideAtCompileTime)
31 : int(StrideType::InnerStrideAtCompileTime),
32 OuterStrideAtCompileTime = StrideType::OuterStrideAtCompileTime == 0
33 ? (InnerStrideAtCompileTime==
Dynamic || PlainObjectTypeInnerSize==
Dynamic
35 : int(InnerStrideAtCompileTime) * int(PlainObjectTypeInnerSize))
36 : int(StrideType::OuterStrideAtCompileTime),
39 Flags = is_lvalue<PlainObjectType>::value ? int(Flags0) : (int(Flags0) & ~
LvalueBit)
96 template<
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
class Map
97 :
public MapBase<Map<PlainObjectType, MapOptions, StrideType> >
112 return StrideType::InnerStrideAtCompileTime != 0 ? m_stride.inner() : 1;
118 return StrideType::OuterStrideAtCompileTime != 0 ? m_stride.outer()
119 : internal::traits<Map>::OuterStrideAtCompileTime !=
Dynamic ?
Index(internal::traits<Map>::OuterStrideAtCompileTime)
120 : IsVectorAtCompileTime ? (this->
size() * innerStride())
122 : (this->
rows() * innerStride());
132 :
Base(cast_to_pointer_type(dataPtr)), m_stride(stride)
144 :
Base(cast_to_pointer_type(dataPtr),
size), m_stride(stride)
157 :
Base(cast_to_pointer_type(dataPtr),
rows,
cols), m_stride(stride)
#define EIGEN_DEVICE_FUNC
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
A matrix or vector expression mapping an existing array of data.
Base::PointerType PointerType
Map(PointerArgType dataPtr, Index rows, Index cols, const StrideType &stride=StrideType())
Map(PointerArgType dataPtr, const StrideType &stride=StrideType())
Map(PointerArgType dataPtr, Index size, const StrideType &stride=StrideType())
EIGEN_CONSTEXPR Index innerStride() const
EIGEN_CONSTEXPR Index outerStride() const
PointerType PointerArgType
const unsigned int LvalueBit
const unsigned int RowMajorBit
const unsigned int NestByRefBit
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.