Skip to content

Commit

Permalink
catch edge case in remove
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelDavidMohr committed Oct 7, 2024
1 parent 9d2ef43 commit f4bde31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/siggb/affine_cells.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ function remove(gb::Vector{P},
push!(res, gb1)
tim1 = @elapsed G = filter(!iszero,
normal_form(random_lin_combs(gb1), gb))
if isempty(G)
return res
end
g_rand = random_lin_comb(G)
rem_rest = H[2:end]
tim2 = @elapsed filter!(h -> !iszero(normal_form(h*g_rand, gb)), rem_rest)
Expand Down

0 comments on commit f4bde31

Please sign in to comment.