Commit b3189504 authored by Alexander Dielen's avatar Alexander Dielen

allow scalars in property_array functions (fixes #22)

parent ed435703
Pipeline #7296 passed with stages
in 5 minutes and 48 seconds
......@@ -140,7 +140,7 @@ public:
PyErr_SetString(PyExc_RuntimeError, "Array shapes do not match.");
throw py::error_already_set();
}
std::copy(arr.data(0), arr.data(0) + size, &data[size * i]);
std::copy(arr.data(), arr.data() + size, &data[size * i]);
}
return py::array_t<double>(shape, strides, data, base);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment