Re:Extending Python with Rust
by europeanguy on Tuesday December 27, 2022 @09:10AM
(#34148769)
You use Julia and let loop fusion handle it. You get 1 allocation if you want to store the result in a new array, or zero allocations if you already have the array allocated.
https://julialang.org/blog/2017/01/moredots/