Replies: 1 comment
-
General performance tips are written on this first page: https://docs.rs/ndarray/0.15.3/ndarray/ My additional summary:
Think of ArrayD as a container of arrays. Doing operations on individual elements is slow. it would be very slow if you wrote it the same way in Python, as in Rust. Not your fault that these primitives are slow, but they are. We avoid indexing in Rust like you'd like to do in Python. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am converting the following python code into rust using ArrayD.
When I tried the following code, it takes about 50 seconds when the shape is [6; 8].
Is there more performant and correct way?
Beta Was this translation helpful? Give feedback.
All reactions