Skip to content

Commit

Permalink
produce zeros with proper type
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoms committed Sep 10, 2024
1 parent 3b1d5c9 commit f397d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/src/triangular.jl
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ function _triukron!(C, A, B)
C[inB+k, jnB+l] = Aij * B[k, l]
end
for k = 1:(l-1)
C[inB+l, jnB+k] = zero(C[1])
C[inB+l, jnB+k] = zero(C[inB+k, jnB+l])
end
end
end
Expand Down Expand Up @@ -945,7 +945,7 @@ function _trilkron!(C, A, B)
C[inB+k, jnB+l] = Aij * B[k, l]
end
for k = (l+1):n_B
C[inB+l, jnB+k] = zero(C[1])
C[inB+l, jnB+k] = zero(C[inB+k, jnB+l])
end
end
end
Expand Down

0 comments on commit f397d13

Please sign in to comment.