We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc6bc3c commit e136d8fCopy full SHA for e136d8f
src/interfaces/nemo.jl
@@ -10,11 +10,11 @@ Convert a vector of polynomials to input data for msolve.
10
function _convert_to_msolve(
11
F::Vector{T}) where T <: MPolyRingElem
12
13
- R = first(F).parent
+ R = parent(first(F))
14
15
nr_vars = nvars(R)
16
nr_gens = length(F)
17
- lens = Int32[F[i].length for i in 1:nr_gens]
+ lens = Int32[length(F[i]) for i in 1:nr_gens]
18
nr_terms = sum(lens)
19
field_char = characteristic(R)
20
@@ -37,7 +37,7 @@ function _convert_to_msolve(
37
else
38
for i in 1:nr_gens
39
for cf in coefficients(F[i])
40
- push!(cfs, Int32(data(prime_field(base_ring(R))(cf))))
+ push!(cfs, Int32(lift(Nemo.ZZ, cf)))
41
end
42
43
0 commit comments