Skip to content

Commit a215494

Browse files
committed
fix oversight
1 parent 635a8a4 commit a215494

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stdlib/LinearAlgebra/src/triangular.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,12 +1227,12 @@ function generic_trimatdiv!(C::AbstractVecOrMat, uploc, isunitc, tfun::Function,
12271227
end
12281228
else # isunitc == 'U'
12291229
if tfun === identity
1230-
C1 = C[1,k] = oA \ B[1,k]
1231-
# fill C-column
1232-
for i in 2:m
1233-
C[i,k] = oA \ B[i,k] - _ustrip(A[i,1]) * C1
1234-
end
12351230
for k in 1:n
1231+
C1 = C[1,k] = oA \ B[1,k]
1232+
# fill C-column
1233+
for i in 2:m
1234+
C[i,k] = oA \ B[i,k] - _ustrip(A[i,1]) * C1
1235+
end
12361236
for j in 2:m
12371237
Cj = C[j,k]
12381238
for i in j+1:m

0 commit comments

Comments
 (0)