Commit c01a1c1a authored by Wenzel Jakob's avatar Wenzel Jakob
Browse files

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.
parent 00488a3e
Supports Markdown
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