14#include "./InternalHeaderCheck.h"
54template <
int OuterStr
ideAtCompileTime_,
int InnerStr
ideAtCompileTime_>
58 enum { InnerStrideAtCompileTime = InnerStrideAtCompileTime_, OuterStrideAtCompileTime = OuterStrideAtCompileTime_ };
61 EIGEN_DEVICE_FUNC
Stride() : m_outer(OuterStrideAtCompileTime), m_inner(InnerStrideAtCompileTime) {
64 eigen_assert(InnerStrideAtCompileTime !=
Dynamic && OuterStrideAtCompileTime !=
Dynamic);
68 EIGEN_DEVICE_FUNC
Stride(
Index outerStride,
Index innerStride) : m_outer(outerStride), m_inner(innerStride) {}
75 m_outer.setValue(other.outer());
76 m_inner.setValue(other.inner());
81 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
inline Index outer()
const {
return m_outer.value(); }
83 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
inline Index inner()
const {
return m_inner.value(); }
86 internal::variable_if_dynamic<Index, OuterStrideAtCompileTime> m_outer;
87 internal::variable_if_dynamic<Index, InnerStrideAtCompileTime> m_inner;
93class InnerStride :
public Stride<0, Value> {
94 typedef Stride<0, Value> Base;
97 EIGEN_DEVICE_FUNC InnerStride() : Base() {}
98 EIGEN_DEVICE_FUNC InnerStride(
Index v) : Base(0, v) {}
108 EIGEN_DEVICE_FUNC OuterStride() : Base() {}
109 EIGEN_DEVICE_FUNC OuterStride(
Index v) : Base(v, 0) {}
Convenience specialization of Stride to specify only an outer stride See class Map for some examples.
Definition ForwardDeclarations.h:156
Holds strides information for Map.
Definition ForwardDeclarations.h:152
Eigen::Index Index
Definition Stride.h:57
EIGEN_CONSTEXPR Index outer() const
Definition Stride.h:81
Stride()
Definition Stride.h:61
Stride(Index outerStride, Index innerStride)
Definition Stride.h:68
EIGEN_CONSTEXPR Index inner() const
Definition Stride.h:83
Stride & operator=(const Stride &other)
Definition Stride.h:74
Stride(const Stride &other)
Definition Stride.h:71
Namespace containing all symbols from the Eigen library.
Definition B01_Experimental.dox:1
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:82
const int Dynamic
Definition Constants.h:25