We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
updatex_eachindex
1 parent 79af57c commit 22c4f60Copy full SHA for 22c4f60
benchmark/benchmarks.jl
@@ -10,7 +10,7 @@ fillx() = for i = 1:2*dim x[i] = i end
10
filly() = for i = -dim+1:dim y[i] = i end
11
updatex() = for i = 1:2*dim x[i] = x[i] + i end
12
updatey() = for i = -dim+1:dim y[i] = y[i] + i end
13
-updatex_eachindex() = for i in eachindex(x) x[i] + i end
+updatex_eachindex() = for i in eachindex(x) x[i] = x[i] + i end
14
updatey_eachindex() = for i in eachindex(y) y[i] = y[i] + i end
15
16
@benchmark fillx()
0 commit comments