Skip to content

Commit 85e9549

Browse files
committed
fixes some Nemo exports
1 parent d62ae9a commit 85e9549

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/algorithms/solvers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function _core_msolve(
171171
k = 1
172172
while i <= len
173173
j = 1
174-
tmp = Vector{Nemo.QQFieldElem}(undef, nr_vars)
174+
tmp = Vector{QQFieldElem}(undef, nr_vars)
175175
while j <= nr_vars
176176
tmp[j] = QQFieldElem(unsafe_load(jl_sols_num, i)) >> Int64(unsafe_load(jl_sols_den, i))
177177
tmp[j] += QQFieldElem(unsafe_load(jl_sols_num, i+1)) >> Int64(unsafe_load(jl_sols_den, i+1))

src/examples/cyclic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Return the Cyclic ideal in the variables of `R`.
88
julia> using AlgebraicSolving
99
1010
julia> R, vars = PolynomialRing(QQ, ["x$i" for i in 1:4])
11-
(Multivariate polynomial ring in 4 variables over QQ, Nemo.QQMPolyRingElem[x1, x2, x3, x4])
11+
(Multivariate polynomial ring in 4 variables over QQ, QQMPolyRingElem[x1, x2, x3, x4])
1212
1313
julia> cyclic(R)
14-
Nemo.QQMPolyRingElem[x1 + x2 + x3 + x4, x1*x2 + x1*x4 + x2*x3 + x3*x4, x1*x2*x3 + x1*x2*x4 + x1*x3*x4 + x2*x3*x4, x1*x2*x3*x4 - 1]
14+
QQMPolyRingElem[x1 + x2 + x3 + x4, x1*x2 + x1*x4 + x2*x3 + x3*x4, x1*x2*x3 + x1*x2*x4 + x1*x3*x4 + x2*x3*x4, x1*x2*x3*x4 - 1]
1515
```
1616
"""
1717
function cyclic(R::MPolyRing)

src/siggb/siggb.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include("symbolic_pp.jl")
1313
include("linear_algebra.jl")
1414

1515
@doc Markdown.doc"""
16-
sig_groebner_basis(sys::Vector{T}; info_level = 0, degbound = 0) where {T <: MPolyElem}
16+
sig_groebner_basis(sys::Vector{T}; info_level = 0, degbound = 0) where {T <: MPolyRingElem}
1717
1818
Compute a Signature Gröbner basis of the sequence `sys` w.r.t. to the
1919
degree reverse lexicographical monomial ordering and the degree
@@ -35,20 +35,20 @@ signature and the second the underlying polynomial.
3535
julia> using AlgebraicSolving
3636
3737
julia> R, vars = PolynomialRing(GF(17), ["x$i" for i in 1:4])
38-
(Multivariate polynomial ring in 4 variables over GF(17), Nemo.fpMPolyRingElem[x1, x2, x3, x4])
38+
(Multivariate polynomial ring in 4 variables over GF(17), fpMPolyRingElem[x1, x2, x3, x4])
3939
4040
julia> F = AlgebraicSolving.cyclic(R)
41-
Nemo.fpMPolyRingElem[x1 + x2 + x3 + x4, x1*x2 + x1*x4 + x2*x3 + x3*x4, x1*x2*x3 + x1*x2*x4 + x1*x3*x4 + x2*x3*x4, x1*x2*x3*x4 + 16]
41+
fpMPolyRingElem[x1 + x2 + x3 + x4, x1*x2 + x1*x4 + x2*x3 + x3*x4, x1*x2*x3 + x1*x2*x4 + x1*x3*x4 + x2*x3*x4, x1*x2*x3*x4 + 16]
4242
4343
julia> Fhom = AlgebraicSolving._homogenize(F.gens)
44-
4-element Vector{Nemo.fpMPolyRingElem}:
44+
4-element Vector{fpMPolyRingElem}:
4545
x1 + x2 + x3 + x4
4646
x1*x2 + x2*x3 + x1*x4 + x3*x4
4747
x1*x2*x3 + x1*x2*x4 + x1*x3*x4 + x2*x3*x4
4848
x1*x2*x3*x4 + 16*x5^4
4949
5050
julia> sig_groebner_basis(Fhom)
51-
7-element Vector{Tuple{Tuple{Int64, Nemo.fpMPolyRingElem}, Nemo.fpMPolyRingElem}}:
51+
7-element Vector{Tuple{Tuple{Int64, fpMPolyRingElem}, fpMPolyRingElem}}:
5252
((1, 1), x1 + x2 + x3 + x4)
5353
((2, 1), x2^2 + 2*x2*x4 + x4^2)
5454
((3, 1), x2*x3^2 + x3^2*x4 + 16*x2*x4^2 + 16*x4^3)
@@ -58,7 +58,7 @@ julia> sig_groebner_basis(Fhom)
5858
((4, x2*x3), x3^2*x4^4 + x2*x3*x5^4 + 16*x2*x4*x5^4 + x3*x4*x5^4 + 15*x4^2*x5^4)
5959
```
6060
"""
61-
function sig_groebner_basis(sys::Vector{T}; info_level::Int=0, degbound::Int=0) where {T <: MPolyElem}
61+
function sig_groebner_basis(sys::Vector{T}; info_level::Int=0, degbound::Int=0) where {T <: MPolyRingElem}
6262
R = first(sys).parent
6363
Rchar = characteristic(R)
6464

0 commit comments

Comments
 (0)