10 #ifndef EIGEN_STRIDE_H 11 #define EIGEN_STRIDE_H 43 template<
int _OuterStr
ideAtCompileTime,
int _InnerStr
ideAtCompileTime>
47 typedef DenseIndex Index;
49 InnerStrideAtCompileTime = _InnerStrideAtCompileTime,
50 OuterStrideAtCompileTime = _OuterStrideAtCompileTime
55 : m_outer(OuterStrideAtCompileTime), m_inner(InnerStrideAtCompileTime)
57 eigen_assert(InnerStrideAtCompileTime !=
Dynamic && OuterStrideAtCompileTime !=
Dynamic);
61 Stride(Index outerStride, Index innerStride)
62 : m_outer(outerStride), m_inner(innerStride)
64 eigen_assert(innerStride>=0 && outerStride>=0);
69 : m_outer(other.
outer()), m_inner(other.
inner())
73 inline Index
outer()
const {
return m_outer.value(); }
75 inline Index
inner()
const {
return m_inner.value(); }
84 template<
int Value = Dynamic>
89 typedef DenseIndex Index;
96 template<
int Value = Dynamic>
101 typedef DenseIndex Index;
108 #endif // EIGEN_STRIDE_H Stride()
Default constructor, for use when strides are fixed at compile time.
Definition: Stride.h:54
Stride(Index outerStride, Index innerStride)
Constructor allowing to pass the strides at runtime.
Definition: Stride.h:61
Index inner() const
Definition: Stride.h:75
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
Holds strides information for Map.
Definition: Stride.h:44
Convenience specialization of Stride to specify only an inner stride See class Map for some examples...
Definition: Stride.h:85
Stride(const Stride &other)
Copy constructor.
Definition: Stride.h:68
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:97
Index outer() const
Definition: Stride.h:73