10 #ifndef EIGEN_STRIDE_H 11 #define EIGEN_STRIDE_H 43 template<
int _OuterStr
ideAtCompileTime,
int _InnerStr
ideAtCompileTime>
49 InnerStrideAtCompileTime = _InnerStrideAtCompileTime,
50 OuterStrideAtCompileTime = _OuterStrideAtCompileTime
56 : m_outer(OuterStrideAtCompileTime), m_inner(InnerStrideAtCompileTime)
58 eigen_assert(InnerStrideAtCompileTime !=
Dynamic && OuterStrideAtCompileTime !=
Dynamic);
63 Stride(Index outerStride, Index innerStride)
64 : m_outer(outerStride), m_inner(innerStride)
66 eigen_assert(innerStride>=0 && outerStride>=0);
72 : m_outer(other.
outer()), m_inner(other.
inner())
77 inline Index
outer()
const {
return m_outer.value(); }
80 inline Index
inner()
const {
return m_inner.value(); }
95 EIGEN_DEVICE_FUNC InnerStride(
Index v) : Base(0, v) {}
106 EIGEN_DEVICE_FUNC OuterStride(
Index v) : Base(v,0) {}
111 #endif // EIGEN_STRIDE_H EIGEN_DEVICE_FUNC Stride(const Stride &other)
Copy constructor.
Definition: Stride.h:71
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
Holds strides information for Map.
Definition: Stride.h:44
EIGEN_DEVICE_FUNC Index inner() const
Definition: Stride.h:80
Convenience specialization of Stride to specify only an inner stride See class Map for some examples...
Definition: Stride.h:90
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
Eigen::Index Index
Definition: Stride.h:47
EIGEN_DEVICE_FUNC Stride()
Default constructor, for use when strides are fixed at compile time.
Definition: Stride.h:55
EIGEN_DEVICE_FUNC Index outer() const
Definition: Stride.h:77
const int Dynamic
This value means that a positive quantity (e.g., a size) is not known at compile-time, and that instead the value is stored in some runtime variable.
Definition: Constants.h:21
Convenience specialization of Stride to specify only an outer stride See class Map for some examples...
Definition: Stride.h:101
EIGEN_DEVICE_FUNC Stride(Index outerStride, Index innerStride)
Constructor allowing to pass the strides at runtime.
Definition: Stride.h:63