diff --git a/include/eigenpy/map.hpp b/include/eigenpy/map.hpp index 6ee8d742bea9fdde32cd0bd47095e9ee5be50180..77677f59e60ccb84ba59a90d2e11d5d0952f56c6 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 1f05bd676e5c4d4f5ddd0b67e3465589a31dfe99..4ffff43950e4e69fd0464267de8be8a4835c281c 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;