We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53c3c6a + e1075ed commit b7865b8Copy full SHA for b7865b8
include/eigenpy/details.hpp
@@ -265,6 +265,19 @@ namespace eigenpy
265
}
266
267
268
+ if (PyArray_NDIM(obj_ptr) == 2)
269
+ {
270
+ const int R = (int)PyArray_DIMS(obj_ptr)[0];
271
+ const int C = (int)PyArray_DIMS(obj_ptr)[1];
272
+
273
+ if( (MatType::RowsAtCompileTime!=R)
274
+ && (MatType::RowsAtCompileTime!=Eigen::Dynamic) )
275
+ return 0;
276
+ if( (MatType::ColsAtCompileTime!=C)
277
+ && (MatType::ColsAtCompileTime!=Eigen::Dynamic) )
278
279
+ }
280
281
// Check if the Scalar type of the obj_ptr is compatible with the Scalar type of MatType
282
if ((PyArray_ObjectType(reinterpret_cast<PyObject *>(obj_ptr), 0)) == NPY_INT)
283
{
0 commit comments