Skip to content

Commit 419c8a3

Browse files
committed
core: rename convert into copy
1 parent 6469775 commit 419c8a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/eigenpy/details.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ namespace eigenpy
181181

182182
/// \brief Copy mat into the Python array using Eigen::Map
183183
template<typename MatrixDerived>
184-
static void convert(const Eigen::MatrixBase<MatrixDerived> & mat_,
185-
PyArrayObject * pyArray)
184+
static void copy(const Eigen::MatrixBase<MatrixDerived> & mat_,
185+
PyArrayObject * pyArray)
186186
{
187187
const MatrixDerived & mat = const_cast<const MatrixDerived &>(mat_.derived());
188188

@@ -231,9 +231,9 @@ namespace eigenpy
231231
new (storage) Type(numpyMap);
232232
}
233233

234-
static void convert(Type const & mat, PyArrayObject * pyArray)
234+
static void copy(Type const & mat, PyArrayObject * pyArray)
235235
{
236-
EigenObjectAllocator<MatType>::convert(mat,pyArray);
236+
EigenObjectAllocator<MatType>::copy(mat,pyArray);
237237
}
238238
};
239239
#endif
@@ -266,7 +266,7 @@ namespace eigenpy
266266
}
267267

268268
// Allocate memory
269-
EigenObjectAllocator<MatType>::convert(mat,pyArray);
269+
EigenObjectAllocator<MatType>::copy(mat,pyArray);
270270

271271
// Create an instance (either np.array or np.matrix)
272272
return NumpyType::getInstance().make(pyArray).ptr();

0 commit comments

Comments
 (0)