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

core: try a fix

parent 659940d8
No related branches found
No related tags found
No related merge requests found
Pipeline #25954 failed
...@@ -342,9 +342,10 @@ struct eigen_allocator_impl_tensor { ...@@ -342,9 +342,10 @@ struct eigen_allocator_impl_tensor {
tensor) tensor)
/// \brief Copy Python array into the input matrix mat. /// \brief Copy Python array into the input matrix mat.
template <typename TensorDerived> template <typename TensorDerived, int AccessLevel>
static void copy(PyArrayObject *pyArray, static void copy(
const Eigen::TensorBase<TensorDerived> &tensor_) { PyArrayObject *pyArray,
const Eigen::TensorBase<TensorDerived, AccessLevel> &tensor_) {
TensorDerived &tensor = const_cast<TensorDerived &>( TensorDerived &tensor = const_cast<TensorDerived &>(
static_cast<const TensorDerived &>(tensor_)); static_cast<const TensorDerived &>(tensor_));
const int pyArray_type_code = EIGENPY_GET_PY_ARRAY_TYPE(pyArray); const int pyArray_type_code = EIGENPY_GET_PY_ARRAY_TYPE(pyArray);
......
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