Replies: 2 comments
-
The Flags are template param of array_t object in detail/numpy.h and are defined a construction of the array_t. If you want to change the flags you will need to construct a new array_t wrapper object with the flags you desire: pybind11/include/pybind11/numpy.h Line 846 in 0be2ea0 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jiapei100 Our Eigen bindings do this with the writable-flag and the array_proxy class btw. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From https://github.com/pybind/pybind11/blob/master/include/pybind11/numpy.h, we can see there is a function
which is returning array's flags. Just wonder if there is a way to setflags() for pybind11 array?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions