Verified Commit b2b30b20 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: allows non dynamic Stride

parent db84212f
......@@ -10,17 +10,18 @@
namespace eigenpy
{
template<typename MatType, bool IsVectorAtCompileTime = MatType::IsVectorAtCompileTime>
template<typename MatType, int InnerStride = Eigen::Dynamic, int OuterStride = Eigen::Dynamic, bool IsVectorAtCompileTime = MatType::IsVectorAtCompileTime>
struct StrideType
{
typedef Eigen::Stride<Eigen::Dynamic,Eigen::Dynamic> type;
typedef Eigen::Stride<OuterStride,InnerStride> type;
};
template<typename MatType>
struct StrideType<MatType,true>
template<typename MatType, int InnerStride, int OuterStride>
struct StrideType<MatType,InnerStride,OuterStride,true>
{
typedef Eigen::InnerStride<Eigen::Dynamic> type;
typedef Eigen::InnerStride<InnerStride> type;
};
}
#endif // ifndef __eigenpy_stride_hpp__
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment