Skip to content

Commit a9aa38c

Browse files
committed
Work around Julia 1.9.0 regression
Ref: JuliaLang/julia#49766
1 parent 3b8e8ed commit a9aa38c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/structural_transformation/bareiss.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ end
143143
V = M[(k + 1):end, (k + 1):end]
144144
V .= exactdiv.(V .* pivot .- M[(k + 1):end, k] * M[k, (k + 1):end]', prev_pivot)
145145
zero!(M, (k + 1):size(M, 1), k)
146+
if M isa AbstractSparseMatrixCSC
147+
dropzeros!(M)
148+
end
146149
end
147150

148151
function bareiss_update_virtual_colswap!(zero!, M::AbstractMatrix, k, swapto, pivot,

0 commit comments

Comments
 (0)