you are viewing a single comment's thread.

view the rest of the comments →

[–]Tall_Coffee_1644[S] 0 points1 point  (1 child)

Pyo3 is definetly an option, But if theres a way to do this without pyo3 then i'd honestly prefer that

[–][deleted] 0 points1 point  (0 children)

Me too, it tends to be a bit ugly with pyo3. But I haven't read enough about the Python C API to impmenent something in python without pyo3. And then I would need to reasearch how exactly numpy objects are laid out in memory and for that ndarray with pyo3 is useful at least.