Skip to content

Commit

Permalink
cache isGB property when computing a GB in small_generating_set
Browse files Browse the repository at this point in the history
  • Loading branch information
ederc committed May 9, 2024
1 parent 47b9dc6 commit 9aa5177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Rings/mpoly-ideals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2038,7 +2038,8 @@ function small_generating_set(
computed_gb = IdealGens(ring, sing_gb, true)
if !haskey(I.gb,computed_gb.ord)
# if not yet present, store gb for later use
I.gb[computed_gb.ord] = computed_gb
I.gb[computed_gb.ord] = computed_gb
I.gb[computed_gb.ord].isGB = true
end

# we do not have a notion of minimal generating set in this context!
Expand Down

0 comments on commit 9aa5177

Please sign in to comment.