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

core: rename convert into copy

parent 6469775c
No related branches found
No related tags found
No related merge requests found
......@@ -181,8 +181,8 @@ namespace eigenpy
/// \brief Copy mat into the Python array using Eigen::Map
template<typename MatrixDerived>
static void convert(const Eigen::MatrixBase<MatrixDerived> & mat_,
PyArrayObject * pyArray)
static void copy(const Eigen::MatrixBase<MatrixDerived> & mat_,
PyArrayObject * pyArray)
{
const MatrixDerived & mat = const_cast<const MatrixDerived &>(mat_.derived());
......@@ -231,9 +231,9 @@ namespace eigenpy
new (storage) Type(numpyMap);
}
static void convert(Type const & mat, PyArrayObject * pyArray)
static void copy(Type const & mat, PyArrayObject * pyArray)
{
EigenObjectAllocator<MatType>::convert(mat,pyArray);
EigenObjectAllocator<MatType>::copy(mat,pyArray);
}
};
#endif
......@@ -266,7 +266,7 @@ namespace eigenpy
}
// Allocate memory
EigenObjectAllocator<MatType>::convert(mat,pyArray);
EigenObjectAllocator<MatType>::copy(mat,pyArray);
// Create an instance (either np.array or np.matrix)
return NumpyType::getInstance().make(pyArray).ptr();
......
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