Skip to content

Commit f509f59

Browse files
traktofonandreasnoack
authored andcommitted
Cleanup.
Document change linearindexes -> linearindices. Clean up comments and unused code.
1 parent 81b20b7 commit f509f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/darray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function DArray(refs)
198198
nindices = Array{NTuple{length(dimdist),UnitRange{Int}}}(undef, dimdist...)
199199

200200
for i in 1:length(nindices)
201-
subidx = CartesianIndices(dimdist)[i] #ind2sub(dimdist, i)
201+
subidx = CartesianIndices(dimdist)[i]
202202
nindices[i] = ntuple(length(subidx)) do x
203203
idx_in_dim = subidx[x]
204204
startidx = 1

0 commit comments

Comments
 (0)