Skip to content

Commit

Permalink
Replace mul! by broadcasting in exp! (JuliaLang#54493)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored and lazarusA committed Jul 12, 2024
1 parent 45fd21a commit e43989d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/src/dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,8 @@ function exp!(A::StridedMatrix{T}) where T<:BlasFloat
V = mul!(C[3]*P, true, C[1]*I, true, true) #V = C[1]*I + C[3]*P
for k in 2:(div(length(C), 2) - 1)
P *= A2
mul!(U, C[2k + 2], P, true, true) # U += C[2k+2]*P
mul!(V, C[2k + 1], P, true, true) # V += C[2k+1]*P
U .+= C[2k + 2] .* P
V .+= C[2k + 1] .* P
end

U = A * U
Expand Down

0 comments on commit e43989d

Please sign in to comment.