17 template<
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
18 struct traits<
Map<PlainObjectType, MapOptions, StrideType> >
19 :
public traits<PlainObjectType>
23 InnerStrideAtCompileTime = StrideType::InnerStrideAtCompileTime == 0
24 ? int(PlainObjectType::InnerStrideAtCompileTime)
25 : int(StrideType::InnerStrideAtCompileTime),
26 OuterStrideAtCompileTime = StrideType::OuterStrideAtCompileTime == 0
27 ? int(PlainObjectType::OuterStrideAtCompileTime)
28 : int(StrideType::OuterStrideAtCompileTime),
88 template<
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
class Map 89 :
public MapBase<Map<PlainObjectType, MapOptions, StrideType> >
99 inline PointerType cast_to_pointer_type(PointerArgType ptr) {
return ptr; }
104 return StrideType::InnerStrideAtCompileTime != 0 ? m_stride.inner() : 1;
110 return StrideType::OuterStrideAtCompileTime != 0 ? m_stride.outer()
111 : IsVectorAtCompileTime ? this->
size()
123 : Base(cast_to_pointer_type(dataPtr)), m_stride(stride)
125 PlainObjectType::Base::_check_template_params();
136 : Base(cast_to_pointer_type(dataPtr), size), m_stride(stride)
138 PlainObjectType::Base::_check_template_params();
150 : Base(cast_to_pointer_type(dataPtr), rows, cols), m_stride(stride)
152 PlainObjectType::Base::_check_template_params();
164 #endif // EIGEN_MAP_H
A matrix or vector expression mapping an existing array of data.
traits< PlainObjectType > TraitsBase
const unsigned int LvalueBit
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
const unsigned int RowMajorBit
EIGEN_DEVICE_FUNC Index innerStride() const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, Index rows, Index cols, const StrideType &stride=StrideType())
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
EIGEN_DEVICE_FUNC Index outerStride() const
const unsigned int NestByRefBit
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, const StrideType &stride=StrideType())
PointerType PointerArgType
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, Index size, const StrideType &stride=StrideType())
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Base::PointerType PointerType