6 #ifndef __eigenpy_stride_hpp__
7 #define __eigenpy_stride_hpp__
13 template <
typename MatType,
int InnerStride,
int OuterStride,
14 bool IsVectorAtCompileTime = MatType::IsVectorAtCompileTime>
16 typedef Eigen::Stride<OuterStride, InnerStride>
type;
19 template <
typename MatType,
int InnerStr
ide,
int OuterStr
ide>
21 typedef Eigen::InnerStride<InnerStride>
type;
24 template <
typename EigenType,
int InnerStride,
int OuterStride,
28 template <
typename MatrixType,
int InnerStr
ide,
int OuterStr
ide>
30 Eigen::MatrixBase<MatrixType> > {
36 template <
typename MatrixType,
int InnerStr
ide,
int OuterStr
ide>
37 struct stride_type<const MatrixType, InnerStride, OuterStride,
38 const
Eigen::MatrixBase<MatrixType> > {
43 #ifdef EIGENPY_WITH_TENSOR_SUPPORT
44 template <
typename TensorType,
int InnerStr
ide,
int OuterStr
ide>
45 struct stride_type<TensorType, InnerStride, OuterStride,
46 Eigen::TensorBase<TensorType> > {
47 typedef Eigen::Stride<OuterStride, InnerStride> type;
50 template <
typename TensorType,
int InnerStr
ide,
int OuterStr
ide>
51 struct stride_type<const TensorType, InnerStride, OuterStride,
52 const
Eigen::TensorBase<TensorType> > {
53 typedef Eigen::Stride<OuterStride, InnerStride> type;
57 template <
typename EigenType,
int InnerStride = Eigen::Dynamic,
58 int OuterStride = Eigen::Dynamic>
65 #endif // ifndef __eigenpy_stride_hpp__