Skip to content

Commit df62f0f

Browse files
mbaumanararslan
authored andcommitted
Remove dependence on partial linear indexing (#106)
* Remove dependence on partial linear indexing Needed to test performance of JuliaLang/julia#21750. * Bump Compat dependency to 0.31.0
1 parent 657025b commit df62f0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
julia 0.5
22
BenchmarkTools 0.0.7
3-
Compat 0.30.0
3+
Compat 0.31.0
44
JLD

src/array/sumindex.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ function makearrays{T}(::Type{T}, r::Integer, c::Integer)
307307
C = samerand(T, 4, r, c)
308308
Asub4 = view(C, 1, :, :)
309309
Asub5 = view(ArrayLS(C), 1, :, :)
310-
Asub6 = view(view(C, :, :, :), :, 2:c+1)
311-
Asub7 = view(view(ArrayLS(C), :, :, :), :, 2:c+1)
310+
Asub6 = view(reshape(view(C, :, :, :), Val(2)), :, 2:c+1)
311+
Asub7 = view(reshape(view(ArrayLS(C), :, :, :), Val(2)), :, 2:c+1)
312312

313313
return (A, AF, AS, ASS, Asub, Asub2, Asub3, Asub4, Asub5, Asub6, Asub7)
314314
end

0 commit comments

Comments
 (0)