Type casting in py::array_t #5342
Unanswered
tomato18463
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I note that this documentation page says
I would like to ask if this is implemented by the
ensure
function in this line.Also, if I define something like:
I know the input will be converted to a float array with C-ordering if it is not in this format. If in any case such conversion fails, can I assume an error will always be thrown, or input will be a nullptr so the running code will report an error? Thank you very much for your help!
Beta Was this translation helpful? Give feedback.
All reactions