Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
Document change linearindexes -> linearindices.
Clean up comments and unused code.
  • Loading branch information
traktofon authored and andreasnoack committed Jul 20, 2018
1 parent 81b20b7 commit f509f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function DArray(refs)
nindices = Array{NTuple{length(dimdist),UnitRange{Int}}}(undef, dimdist...)

for i in 1:length(nindices)
subidx = CartesianIndices(dimdist)[i] #ind2sub(dimdist, i)
subidx = CartesianIndices(dimdist)[i]
nindices[i] = ntuple(length(subidx)) do x
idx_in_dim = subidx[x]
startidx = 1
Expand Down

0 comments on commit f509f59

Please sign in to comment.