Skip to content

Commit 1201b1f

Browse files
authored
Appropriate zero in _lu_tridiag! (#1374)
Working on #1372, I came across some unusual tests with non-Number `eltype`s, for which this `fill!` fails unless the appropriate zero is used. Probably missing convert methods, but we might as well use the zero of the eltype here.
1 parent c64c328 commit 1201b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ end
652652

653653
# Initialize variables
654654
info = 0
655-
fill!(du2, 0)
655+
fill!(du2, zero(eltype(du2)))
656656

657657
@inbounds begin
658658
for i = 1:n

0 commit comments

Comments
 (0)