|
Im converting an ML model to rust and im translating some of the methods that use numpy and one method uses this |
Answered by
zgbkdlm
Jan 27, 2023
Replies: 2 comments 1 reply
|
You need to use Then convert the iterator to the ndarray by the method |
0 replies
Answer selected by
mdrokz
|
Suggesting https://github.com/jreniel/meshgridrs as an alternative. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to use
itertools.cartesian_productin https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.cartesian_product.Then convert the iterator to the ndarray by the method
from_iter.