@@ -53,7 +53,7 @@ mutable struct IdealMQS{T} <: AbstractBlackboxIdeal
53
53
sat_varname = " t" ,
54
54
sat_var_position = :first ,
55
55
ordering = :degrevlex ,
56
- extra_const_polys:: Vector{PolyQQ} = Vector {PolyQQ} (),
56
+ extra_const_polys:: Vector{PolyQQ} = Vector {PolyQQ} (),
57
57
) where {PolyQQ}
58
58
# We are given polynomials of form
59
59
# [[f1, f2, f3, ...], [g1, g2, g3, ...], ...]
@@ -207,7 +207,8 @@ function fractionfree_generators_raw(mqs::IdealMQS)
207
207
nums_qq, dens_qq, const_polys = mqs. nums_qq, mqs. dens_qq, mqs. const_polys
208
208
nums_y = map (num -> parent_ring_change (num, big_ring, matching = :byindex ), nums_qq)
209
209
dens_y = map (den -> parent_ring_change (den, big_ring, matching = :byindex ), dens_qq)
210
- const_polys_y = map (p -> parent_ring_change (p, big_ring, matching = :byindex ), const_polys)
210
+ const_polys_y =
211
+ map (p -> parent_ring_change (p, big_ring, matching = :byindex ), const_polys)
211
212
nums_x = map (num -> parent_ring_change (num, big_ring, matching = :byname ), nums_qq)
212
213
dens_x = map (den -> parent_ring_change (den, big_ring, matching = :byname ), dens_qq)
213
214
polys = Vector {elem_type(big_ring)} (undef, length (nums_qq) + length (const_polys))
@@ -238,10 +239,16 @@ function ParamPunPam.reduce_mod_p!(
238
239
return nothing
239
240
end
240
241
nums_qq, dens_qq, const_polys = mqs. nums_qq, mqs. dens_qq, mqs. const_polys
241
- ring_ff, _ = Nemo. polynomial_ring (ff, map (var_to_str, gens (parent (first (const_polys)))))
242
+ ring_qq = parent (first (const_polys))
243
+ ring_ff, _ = Nemo. polynomial_ring (
244
+ ff,
245
+ map (var_to_str, gens (ring_qq)),
246
+ internal_ordering = Nemo. internal_ordering (ring_qq),
247
+ )
242
248
nums_gf = map (poly -> map_coefficients (c -> ff (c), poly, parent = ring_ff), nums_qq)
243
249
dens_gf = map (poly -> map_coefficients (c -> ff (c), poly, parent = ring_ff), dens_qq)
244
- const_polys_gf = map (poly -> map_coefficients (c -> ff (c), poly, parent = ring_ff), const_polys)
250
+ const_polys_gf =
251
+ map (poly -> map_coefficients (c -> ff (c), poly, parent = ring_ff), const_polys)
245
252
mqs. cached_nums_gf[ff] = nums_gf
246
253
mqs. cached_dens_gf[ff] = dens_gf
247
254
mqs. cached_const_polys_gf[ff] = const_polys_gf
0 commit comments