diff --git a/include/eigenpy/details.hpp b/include/eigenpy/details.hpp index e80e3dfa2584939b87945212788e81ba9702896c..babf71af7ea5a45afe2769f0a408807027105e10 100644 --- a/include/eigenpy/details.hpp +++ b/include/eigenpy/details.hpp @@ -187,12 +187,8 @@ namespace eigenpy static void* convertible(PyArrayObject* obj_ptr) { if (!PyArray_Check(obj_ptr)) - { -#ifndef NDEBUG - std::cerr << "The python object is not a numpy array." << std::endl; -#endif return 0; - } + if(MatType::IsVectorAtCompileTime) { // Special care of scalar matrix of dimension 1x1.