Skip to content

Commit aa6bf45

Browse files
authored
Merge pull request #42 from joschmitt/js/fix
Fix usage of `MPolyBuildCtx`
2 parents 407722b + feebc06 commit aa6bf45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AlgebraicSolving"
22
uuid = "66b61cbe-0446-4d5d-9090-1ff510639f9d"
33
authors = ["ederc <[email protected]>", "Mohab Safey El Din <[email protected]", "Rafael Mohr <[email protected]>"]
4-
version = "0.4.9"
4+
version = "0.4.10"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/interfaces/nemo.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ function _convert_finite_field_array_to_abstract_algebra(
101101
continue
102102
end
103103
end
104-
g = MPolyBuildCtx(R)
105104
if bcf[len+1] == 0
106-
g.poly = R(0)
105+
push!(basis, R(0))
107106
else
107+
g = MPolyBuildCtx(R)
108108
for j in 1:blen[i]
109109
push_term!(g, CR(bcf[len+j]),
110110
convert(Vector{Int}, bexp[(len+j-1)*nr_vars+1:(len+j)*nr_vars]))
111111
end
112+
push!(basis, finish(g))
112113
end
113114
len += blen[i]
114-
push!(basis, g.poly)
115115
end
116116

117117
return basis

0 commit comments

Comments
 (0)