Support writing custom NumPy ufuncs in Rust
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 141
- Avg merge
- 16m
- Merged PRs (30d)
- 3
Description
Add support for writing custom NumPy ufuncs in Rust.
Discussed in https://github.com/PyO3/rust-numpy/discussions/398
Originally posted by mhostetter October 29, 2023
Is it possible to write a custom NumPy ufunc in Rust and then apply it on arrays (with the requisite broadcasting) from either Rust or Python?
My application is writing finite field arithmetic ufuncs. I previously implemented this in Python and wrapped in Numba. I'm curious if I can replicate in Rust and achieve better performance.
Forgive the question if it's obvious. I didn't find an answer in documentation.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Discussion 398, which contains the original question and use case. The issue names no files, tests, or entry points; completion would require defining support for custom NumPy ufuncs in Rust, including broadcasting and use from both Rust and Python.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, rust
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100