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

core: add return type info

parent 6ac2ab18
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,11 @@ namespace eigenpy
// Create an instance (either np.array or np.matrix)
return NumpyType::make(pyArray).ptr();
}
static PyTypeObject const *get_pytype()
{
return getPyArrayType();
}
};
template<typename MatType, int Options, typename Stride, typename _Scalar>
......@@ -110,6 +115,11 @@ namespace eigenpy
// Create an instance (either np.array or np.matrix)
return NumpyType::make(pyArray).ptr();
}
static PyTypeObject const *get_pytype()
{
return getPyArrayType();
}
};
template<typename MatType>
......@@ -117,7 +127,7 @@ namespace eigenpy
{
static void registration()
{
bp::to_python_converter<MatType,EigenToPy<MatType> >();
bp::to_python_converter<MatType,EigenToPy<MatType>, true>();
}
};
}
......
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