Skip to content

Commit

Permalink
Index UniformScaling with CartesianIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Nov 8, 2024
1 parent d89fbf8 commit 78ca914
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stdlib/LinearAlgebra/src/dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,8 @@ function exp!(A::StridedMatrix{T}) where T<:BlasFloat
U = similar(P)
V = similar(P)
for ind in CartesianIndices(P)
i, j = Tuple(ind)
U[ind] = C[4]*P[ind] + C[2]*I[i, j]
V[ind] = C[3]*P[ind] + C[1]*I[i, j]
U[ind] = C[4]*P[ind] + C[2]*I[ind]
V[ind] = C[3]*P[ind] + C[1]*I[ind]
end
for k in 2:(div(length(C), 2) - 1)
P *= A2
Expand Down

0 comments on commit 78ca914

Please sign in to comment.