Skip to content

Commit

Permalink
fixes another boundary case
Browse files Browse the repository at this point in the history
  • Loading branch information
ederc committed Oct 24, 2024
1 parent d14c5a8 commit 3e10a09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Rings/mpoly-ideals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1884,6 +1884,7 @@ julia> dim(I)
if I.dim > -1
return I.dim
end
is_one(I) && return -1 # Catch a boundary case
is_zero(ngens(base_ring(I))) && return 0 # Catch a boundary case
if is_f4_applicable(I, degrevlex(base_ring(I)))
I.dim = AlgebraicSolving.dimension(AlgebraicSolving.Ideal(I.gens.O))
Expand Down

0 comments on commit 3e10a09

Please sign in to comment.