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),
29 Alignment = int(MapOptions)&int(AlignedMask),
30 Flags0 = TraitsBase::Flags & (~NestByRefBit),
88 template<
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
class Map 89 :
public MapBase<Map<PlainObjectType, MapOptions, StrideType> >
94 EIGEN_DENSE_PUBLIC_INTERFACE(
Map)
96 typedef typename Base::PointerType PointerType;
97 typedef PointerType PointerArgType;
99 inline PointerType cast_to_pointer_type(PointerArgType ptr) {
return ptr; }
102 inline Index innerStride()
const 104 return StrideType::InnerStrideAtCompileTime != 0 ? m_stride.inner() : 1;
108 inline Index outerStride()
const 110 return StrideType::OuterStrideAtCompileTime != 0 ? m_stride.outer()
111 : IsVectorAtCompileTime ? this->size()
122 explicit inline Map(PointerArgType dataPtr,
const StrideType& stride = StrideType())
123 : Base(cast_to_pointer_type(dataPtr)), m_stride(stride)
125 PlainObjectType::Base::_check_template_params();
135 inline Map(PointerArgType dataPtr,
Index size,
const StrideType& stride = StrideType())
136 : Base(cast_to_pointer_type(dataPtr), size), m_stride(stride)
138 PlainObjectType::Base::_check_template_params();
149 inline Map(PointerArgType dataPtr,
Index rows,
Index cols,
const StrideType& stride = StrideType())
150 : Base(cast_to_pointer_type(dataPtr), rows, cols), m_stride(stride)
152 PlainObjectType::Base::_check_template_params();
155 EIGEN_INHERIT_ASSIGNMENT_OPERATORS(
Map)
164 #endif // EIGEN_MAP_H Definition: ForwardDeclarations.h:114
A matrix or vector expression mapping an existing array of data.
Definition: Map.h:88
const unsigned int LvalueBit
Means the expression has a coeffRef() method, i.e.
Definition: Constants.h:139
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition: Constants.h:61
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, Index rows, Index cols, const StrideType &stride=StrideType())
Constructor in the dynamic-size matrix case.
Definition: Map.h:149
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, const StrideType &stride=StrideType())
Constructor in the fixed-size case.
Definition: Map.h:122
Definition: BandTriangularSolver.h:13
EIGEN_DEVICE_FUNC Map(PointerArgType dataPtr, Index size, const StrideType &stride=StrideType())
Constructor in the dynamic-size vector case.
Definition: Map.h:135
Definition: ForwardDeclarations.h:17
Definition: XprHelper.h:630