17 template<
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
18 struct traits<
Map<PlainObjectType, MapOptions, StrideType> >
19 :
public traits<PlainObjectType>
24 ? PlainObjectType::ColsAtCompileTime
25 : PlainObjectType::RowsAtCompileTime,
27 InnerStrideAtCompileTime = StrideType::InnerStrideAtCompileTime == 0
28 ? int(PlainObjectType::InnerStrideAtCompileTime)
29 : int(StrideType::InnerStrideAtCompileTime),
30 OuterStrideAtCompileTime = StrideType::OuterStrideAtCompileTime == 0
31 ? (InnerStrideAtCompileTime==
Dynamic || PlainObjectTypeInnerSize==
Dynamic
33 : int(InnerStrideAtCompileTime) * int(PlainObjectTypeInnerSize))
34 : int(StrideType::OuterStrideAtCompileTime),
94 template<
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
class Map
95 :
public MapBase<Map<PlainObjectType, MapOptions, StrideType> >
110 return StrideType::InnerStrideAtCompileTime != 0 ? m_stride.inner() : 1;
116 return StrideType::OuterStrideAtCompileTime != 0 ? m_stride.outer()
118 : IsVectorAtCompileTime ? (this->
size() * innerStride())
120 : (this->rows() * innerStride());
130 :
Base(cast_to_pointer_type(dataPtr)), m_stride(stride)
132 PlainObjectType::Base::_check_template_params();
143 :
Base(cast_to_pointer_type(dataPtr),
size), m_stride(stride)
145 PlainObjectType::Base::_check_template_params();
157 :
Base(cast_to_pointer_type(dataPtr), rows, cols), m_stride(stride)
159 PlainObjectType::Base::_check_template_params();
#define EIGEN_CONSTEXPR
Definition: Macros.h:787
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1283
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
Definition: Macros.h:1231
Definition: ForwardDeclarations.h:112
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:108
Base::PointerType PointerType
Definition: Map.h:102
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index outerStride() const
Definition: Map.h:114
StrideType m_stride
Definition: Map.h:165
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, Index size, const StrideType &stride=StrideType())
Definition: Map.h:142
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, Index rows, Index cols, const StrideType &stride=StrideType())
Definition: Map.h:156
MapBase< Map > Base
Definition: Map.h:99
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, const StrideType &stride=StrideType())
Definition: Map.h:129
PointerType PointerArgType
Definition: Map.h:103
@ AlignedMask
Definition: Constants.h:239
const unsigned int LvalueBit
Definition: Constants.h:144
const unsigned int RowMajorBit
Definition: Constants.h:66
EIGEN_CONSTEXPR Index size(const T &x)
Definition: Meta.h:479
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
const unsigned int NestByRefBit
Definition: Constants.h:169
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
const int Dynamic
Definition: Constants.h:22
Flags
Special flags for archives.
Definition: cereal.hpp:185
Definition: document.h:416
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1282
Definition: XprHelper.h:660
traits< PlainObjectType > TraitsBase
Definition: Map.h:21
Definition: ForwardDeclarations.h:17