Skip to content

Commit

Permalink
Fix dimension for ideals in polynomial rings.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Dec 11, 2024
1 parent 6f971a7 commit 67ae9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rings/mpoly-ideals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ julia> dim(I)
function dim(I::MPolyIdeal)
if I.dim === nothing
if is_zero(ngens(base_ring(I))) # Catch a boundary case
I.dim = 0
I.dim = dim(coefficient_ring(base_ring(I)))

Check warning on line 1896 in src/Rings/mpoly-ideals.jl

View check run for this annotation

Codecov / codecov/patch

src/Rings/mpoly-ideals.jl#L1896

Added line #L1896 was not covered by tests
else
I.dim = Singular.dimension(singular_groebner_generators(I, false, true))
end
Expand Down

0 comments on commit 67ae9ac

Please sign in to comment.