CartesianRange Julia 1.0


#1

I’ve been reading through the julia doc which has the following link to Multidimensional algorithms and iteration:

https://julialang.org/blog/2016/02/iteration

It references the use of CartesianRange which is Undefined in Julia 1.0. Has CartesianRange been removed from Julia 1.0 and if so, is there any current version of the documentation provided in the blog post?


#2

According to the Julia v1.0.0 Release Notes

CartesianRange has been renamed CartesianIndices (#24715).

#3

Yes. Thanks jandehaan,

CartesianRange has indeed been renamed to CartesianIndices. Thanks, I am assuming that functionality stays the same.


#4

The latest release notes describe the following:

CartesianIndices can now be constructed from two CartesianIndexes I and J with I:J (#29440).
CartesianIndices support broadcasting arithmetic (+ and -) with a CartesianIndex (#29890).
one(i::CartesianIndex) should be replaced with oneunit(i::CartesianIndex) (#29442).