rust-numpy icon indicating copy to clipboard operation
rust-numpy copied to clipboard

PyO3-based Rust bindings of the NumPy C-API

Results 48 rust-numpy issues
Sort by recently updated
recently updated
newest added

This PR builds on #431 to migrate to PyO3 0.22.0 without needing to activate the problematic `py-clone` feature. ## Background PyO3 recently released version 0.22.0 which includes [many new features](https://pyo3.rs/v0.22.0/changelog),...

The current release for `rust-numpy` (v0.21.0) does not support the latest `pyo3` version. ```sh $ cargo add numpy Updating crates.io index Adding numpy v0.21.0 to dependencies Features: - half -...

Thanks for providing this amazing library! The code example given in this project's README file demonstrates the use of PyO3. I guess that it should also serve as a pedagogical...

The `PyReadwriteArray` understands the flag during the dynamic borrow checking, this just adds a way to set it on an array as well. This is a safe subset of what...

I'm using `PyArray::from_borrowed_array_bound` to expose an immutable data buffer from a Rust struct to Python space via Numpy. The type needs to uphold some invariants about its internal data, which...

I'm looking at using rust-numpy with the free-threaded Python build and it looks like the first blocker is 0.23 support. The error I hit out of the box after pointing...

Relates #455 For personal testing a created a branch targeting PyO3 0.23-dev from `main`. I thought I'll leave that here. Once pyo3 0.23 releases, this can probably be split up...

I'm calling another library that doesn't use the numpy crate. It only uses the "vanilla" ndarray crate, and as such returns an ndarray::Array2 object. For the life of me, I...

In #442 we identified a few issues when running against 32-bit windows. With numpy2 some tests fail because the dtype `ELSIZE` is incorrectly returning 0, while with numpy1 some examples...