Skip to content

Commit

Permalink
Fix change for v1.1 axes() change
Browse files Browse the repository at this point in the history
  • Loading branch information
tobydriscoll committed Jan 31, 2019
1 parent 86e8186 commit 4669a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion julia/functions/chapter13.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tensor product grid.
"""
function ndgrid(x...)
I = CartesianIndices( fill(undef,length.(x)) )
[ [ x[d][i[d]] for i in I] for d in axes(x) ]
[ [ x[d][i[d]] for i in I] for d = 1:length(x) ]
end

"""
Expand Down

0 comments on commit 4669a12

Please sign in to comment.