From 419c8a386f637dc28596916e809cf52799cb71c7 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Fri, 19 Jul 2019 16:43:18 +0200 Subject: [PATCH] core: rename convert into copy --- include/eigenpy/details.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/eigenpy/details.hpp b/include/eigenpy/details.hpp index 329ef5e4..1979b64f 100644 --- a/include/eigenpy/details.hpp +++ b/include/eigenpy/details.hpp @@ -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(); -- GitLab