Skip to content
Snippets Groups Projects
Verified Commit 89d7fa02 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: minor clean

parent c76bbd20
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,6 @@ namespace eigenpy ...@@ -55,8 +55,6 @@ namespace eigenpy
const int stride2 = (int)PyArray_STRIDE(pyArray, 1) / (int)itemsize; const int stride2 = (int)PyArray_STRIDE(pyArray, 1) / (int)itemsize;
Stride stride(stride2,stride1); Stride stride(stride2,stride1);
if( (MatType::RowsAtCompileTime!=R) if( (MatType::RowsAtCompileTime!=R)
&& (MatType::RowsAtCompileTime!=Eigen::Dynamic) ) && (MatType::RowsAtCompileTime!=Eigen::Dynamic) )
{ throw eigenpy::Exception("The number of rows does not fit with the matrix type."); } { throw eigenpy::Exception("The number of rows does not fit with the matrix type."); }
......
...@@ -19,7 +19,8 @@ namespace eigenpy ...@@ -19,7 +19,8 @@ namespace eigenpy
{ {
template<typename PlainObjectTypeT> 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: public:
typedef Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename eigenpy::template StrideType<PlainObjectTypeT>::type> Base; typedef Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename eigenpy::template StrideType<PlainObjectTypeT>::type> Base;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment