How to return numpy ndarray objects from Rust to Python? #2042
-
Hi everyone! I'm new to pyo3 and I'd like to ask how I can return numpy ndarrays from Rust to Python. Simply put, I want to write a function whose input and output are numpy ndarrays, write it in Rust with Rust-native data types and glue it to Python. I've been reading the documentations of pyo3 and rust-numpy, but I didn't find out related contents. I know If you have done that before or you know where the related documentation is, please give me a pointer. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're probably looking for rust-numpy. See also #2029 |
Beta Was this translation helpful? Give feedback.
You're probably looking for rust-numpy. See also #2029