Closed eloualiche closed 4 years ago
There are no built in way of doing this. You could use a list comprehension and splatting as a more elegant way.
N = 6
grid = RectangleGrid([grid_1d for i=1:N]...)
This is if grid_1d
is the same for all your dimensions.
Thanks! Sorry for such basic question but I could not figure out a proper syntax.
no problem!
This might be already doable but I cannot figure it out. I am trying to generate a N-dimensional rectangular grid where N is a parameter.
So if my grid is
Of course this is a little annoying for more dimensions
I looked into the constructor but was not able to figure out an elegant way of programmatically implement my rectangle.
Any help would be appreciated!
Thank you for the great and useful package.