-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of numpy's meshgrid function for ndarray #1355
Comments
Any updates on this? I also need |
@jreniel, thank you for the reference implementation! @ivnsch and jreniel, do your applications require mesh grid with an arbitrary (i.e., run-time) number of arrays? This dictates whether we can maintain the dimensionality of the output arrays in the type system, or whether we have to resort to |
@akern40 sounds great! my current use case requires only a fixed number of arrays (3). |
Hi @akern40 , sounds like great news that you are working on this! I work with ocean and atmospheric spatial data, We often use 2D meshgrids for representing surface data, such as building rasters for bathymetry or other types of data, but the need to represent 3D water/atmos column data is also present and common. Thanks again, I'm excited to know that the Rust language just keeps growing! =) |
Thanks to you both for the quick responses! I'll see if I can get a PR open to add this over the weekend. |
I have made an attempt to try to replicate the core functionality of numpy's meshgrid function, using ndarray.
My attempt, which seems to be yielding identical results to the numpy version is hosted here.
My hope is that this function, or an equivalent, makes it to ndarray, since I feel like
meshgrid
is one of those core numpy functions that we tend to use repeatedly in my field, and it would be an invaluable addition to the ndarray crate.To be clear, I'm asking to not necessarily use the same function that I've posted here, I'll be happy too if the ndarray devs implement a better solution. All I would like to see is to have this function be a part of the ndarray collection of functions.
The text was updated successfully, but these errors were encountered: