stride.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2019, CNRS
3  * Copyright 2018-2019, INRIA
4  */
5 
6 #ifndef __eigenpy_stride_hpp__
7 #define __eigenpy_stride_hpp__
8 
9 #include <Eigen/Core>
10 
11 namespace eigenpy
12 {
13  template<typename MatType, int InnerStride = Eigen::Dynamic, int OuterStride = Eigen::Dynamic, bool IsVectorAtCompileTime = MatType::IsVectorAtCompileTime>
14  struct StrideType
15  {
16  typedef Eigen::Stride<OuterStride,InnerStride> type;
17  };
18 
19  template<typename MatType, int InnerStride, int OuterStride>
20  struct StrideType<MatType,InnerStride,OuterStride,true>
21  {
22  typedef Eigen::InnerStride<InnerStride> type;
23  };
24 
25 }
26 
27 #endif // ifndef __eigenpy_stride_hpp__
Eigen::Stride< OuterStride, InnerStride > type
Definition: stride.hpp:16


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59