Skip to content
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

Constructing N-dimensional rectangular regions #29598

Closed
juliohm opened this issue Oct 11, 2018 · 1 comment
Closed

Constructing N-dimensional rectangular regions #29598

juliohm opened this issue Oct 11, 2018 · 1 comment

Comments

@juliohm
Copy link
Contributor

juliohm commented Oct 11, 2018

In Julia v1.0 the type CartesianRange was removed in favor of CartesianIndices. To construct a N-dimensional rectangular region, we have to do:

CartesianIndices(ntuple(i -> start[i]:finish[i], N))

which is relatively ugly. Could we have the old syntax like CartesianIndices(start, finish) work again?

@timholy
Copy link
Member

timholy commented Oct 11, 2018

Already done, see #29440

@timholy timholy closed this as completed Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants