added array::ensure() function wrapping PyArray_FromAny
This convenience function ensures that a py::object is either a py::array, or the implementation will try to convert it into one. Layout requirements (such as c_style or f_style) can be also be provided.
Showing
Please
register
or
sign in
to comment