FITFLOP
Home

pyo3 (3 post)


posts by category not found!

How to avoid `PyBorrowMutError` when passing parent struct to python function, and calling mutable parent member

Avoiding Py Borrow Mut Error When Passing Parent Structs to Python Functions Passing Rust structs containing mutable data to Python functions can sometimes lead

2 min read 04-10-2024 63
How to avoid `PyBorrowMutError` when passing parent struct to python function, and calling mutable parent member
How to avoid `PyBorrowMutError` when passing parent struct to python function, and calling mutable parent member

Why is my simple vec3 pyo3 pyclass so much slower than py glm's equivalent class at construction and multiplication?

The Performance Mystery Why is My Pyo3 Vec3 Slower than Py GLM Have you ever encountered a perplexing performance difference between your custom Python bindings

2 min read 03-10-2024 31
Why is my simple vec3 pyo3 pyclass so much slower than py glm's equivalent class at construction and multiplication?
Why is my simple vec3 pyo3 pyclass so much slower than py glm's equivalent class at construction and multiplication?

How do I return a numpy array in rust using pyo3?

Returning Num Py Arrays from Rust with Pyo3 The ability to seamlessly exchange data between Rust and Python is a powerful tool in the modern data scientists ars

2 min read 02-10-2024 28
How do I return a numpy array in rust using pyo3?
How do I return a numpy array in rust using pyo3?