@@ -65,6 +65,9 @@ function _core_msolve(
6565 )
6666
6767 F = I. gens
68+ if (is_zero (F))
69+ error (" Dimension of ideal is greater than zero, no solutions provided." )
70+ end
6871 R = first (F). parent
6972 nr_vars = nvars (R)
7073 nr_gens = length (F)
@@ -86,7 +89,7 @@ function _core_msolve(
8689 error (" At the moment we only support the rationals as ground field." )
8790 end
8891 # convert Singular ideal to flattened arrays of ints
89- lens, cfs, exps = _convert_to_msolve (F)
92+ lens, cfs, exps, nr_gens = _convert_to_msolve (F)
9093
9194 res_ld = Ref (Cint (0 ))
9295 res_nr_vars = Ref (Cint (0 ))
@@ -214,7 +217,7 @@ Given an ideal `I` with a finite solution set over the complex numbers, return
214217the rational parametrization of the ideal with a given precision (default 32 bits).
215218
216219**Note**: At the moment only QQ is supported as ground field. If the dimension of the ideal
217- is greater then zero an empty array is returned .
220+ is greater than zero an ErrorException is thrown .
218221
219222# Arguments
220223- `I::Ideal{T} where T <: MPolyRingElem`: input generators.
@@ -364,7 +367,7 @@ Given an ideal `I` with a finite solution set over the complex numbers, return
364367the real roots of the ideal with a given precision (default 32 bits).
365368
366369**Note**: At the moment only QQ is supported as ground field. If the dimension of the ideal
367- is greater than zero an empty array is returned .
370+ is greater than zero an ErrorException is thrown .
368371
369372# Arguments
370373- `I::Ideal{T} where T <: MPolyRingElem`: input generators.
0 commit comments