-
Im converting an ML model to rust and im translating some of the methods that use numpy and one method uses this |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You need to use Then convert the iterator to the ndarray by the method |
Beta Was this translation helpful? Give feedback.
-
Suggesting https://github.com/jreniel/meshgridrs as an alternative. |
Beta Was this translation helpful? Give feedback.
You need to use
itertools.cartesian_product
in https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.cartesian_product.Then convert the iterator to the ndarray by the method
from_iter
.