Skip to content

Commit 58857f8

Browse files
committed
precache Groebner basis if normal form is applied
1 parent e4a987f commit 58857f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/algorithms/normal-forms.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ function _core_normal_form(
120120
end
121121

122122
#= first get a degree reverse lexicographical Gröbner basis for I =#
123-
G = groebner_basis(I, eliminate = 0, la_option = 44, info_level = info_level)
123+
if !haskey(I.gb, 0)
124+
groebner_basis(I, eliminate = 0, la_option = 44, info_level = info_level)
125+
end
126+
G = I.gb[0]
124127

125128
tbr_nr_gens = length(F)
126129
bs_nr_gens = length(G)

0 commit comments

Comments
 (0)