Skip to content

Commit a48fb57

Browse files
committed
generalizes test for zero ideal input
1 parent a47f995 commit a48fb57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/algorithms/groebner-bases.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ function _core_groebner_basis(
151151

152152
F = I.gens
153153
R = first(F).parent
154-
if F == [R(0)]
154+
155+
if F == repeat([R(0)], length(F))
156+
I.gb[eliminate] = F
155157
return F
156158
end
157159
nr_vars = nvars(R)

0 commit comments

Comments
 (0)