Skip to content

Commit ca967ee

Browse files
gdalleamontoison
authored andcommitted
Use fill! whenever possible
1 parent 347e297 commit ca967ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/decompression.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ function decompress!(
377377
@compat (; star, hub, spokes) = star_set
378378
S = result.ag.S
379379
uplo == :F && check_same_pattern(A, S)
380-
A .= zero(eltype(A))
380+
fill!(A, zero(eltype(A)))
381381
for i in axes(A, 1)
382382
if !iszero(S[i, i])
383383
A[i, i] = B[i, color[i]]
@@ -469,7 +469,7 @@ function decompress!(
469469
S = result.ag.S
470470
uplo == :F && check_same_pattern(A, S)
471471
R = eltype(A)
472-
A .= zero(R)
472+
fill!(A, zero(R))
473473

474474
if eltype(buffer) == R
475475
buffer_right_type = buffer
@@ -519,7 +519,7 @@ function decompress!(
519519

520520
# TODO: for some reason I cannot use ldiv! with a sparse QR
521521
strict_upper_nonzeros_A = T_factorization \ vec(B)
522-
A .= zero(eltype(A))
522+
fill!(A, zero(eltype(A)))
523523
for i in axes(A, 1)
524524
if !iszero(S[i, i])
525525
A[i, i] = B[i, color[i]]

0 commit comments

Comments
 (0)