From 89d7fa02d10a0d7c78cc7ab5b9e6d7bbecf3fdf9 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Thu, 18 Jul 2019 17:52:54 +0200 Subject: [PATCH] core: minor clean --- include/eigenpy/map.hpp | 2 -- include/eigenpy/ref.hpp | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/eigenpy/map.hpp b/include/eigenpy/map.hpp index 6ee8d742..77677f59 100644 --- a/include/eigenpy/map.hpp +++ b/include/eigenpy/map.hpp @@ -55,8 +55,6 @@ namespace eigenpy const int stride2 = (int)PyArray_STRIDE(pyArray, 1) / (int)itemsize; Stride stride(stride2,stride1); - - if( (MatType::RowsAtCompileTime!=R) && (MatType::RowsAtCompileTime!=Eigen::Dynamic) ) { throw eigenpy::Exception("The number of rows does not fit with the matrix type."); } diff --git a/include/eigenpy/ref.hpp b/include/eigenpy/ref.hpp index 1f05bd67..4ffff439 100644 --- a/include/eigenpy/ref.hpp +++ b/include/eigenpy/ref.hpp @@ -19,7 +19,8 @@ namespace eigenpy { template<typename PlainObjectTypeT> - struct Ref : Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename StrideType<PlainObjectTypeT>::type> + struct Ref + : Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename StrideType<PlainObjectTypeT>::type> { public: typedef Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename eigenpy::template StrideType<PlainObjectTypeT>::type> Base; -- GitLab