We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e08d979 commit db90ac0Copy full SHA for db90ac0
base/linalg/generic.jl
@@ -8,7 +8,7 @@ scale(s::Number, X::AbstractArray) = s*X
8
# For better performance when input and output are the same array
9
# See https://github.com/JuliaLang/julia/issues/8415#issuecomment-56608729
10
function generic_scale!(X::AbstractArray, s::Number)
11
- for I in eachindex(X)
+ @simd for I in eachindex(X)
12
@inbounds X[I] *= s
13
end
14
X
0 commit comments