Skip to content

Commit

Permalink
run CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha Demin committed Aug 21, 2024
1 parent cb4edd5 commit 49cce4c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 46 deletions.
4 changes: 0 additions & 4 deletions docs/interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ using Groebner # hide

{{doc normalform normalform fn}}

<!-- {{doc fglm fglm fn}} -->

{{doc kbase kbase fn}}

## Monomial orderings

A list of all monomial orderings supported by Groebner.jl.
Expand Down
2 changes: 0 additions & 2 deletions src/Groebner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ export groebner_with_change_matrix
export isgroebner
export normalform

export kbase

export Lex,
DegLex, DegRevLex, InputOrdering, WeightedOrdering, ProductOrdering, MatrixOrdering

Expand Down
13 changes: 0 additions & 13 deletions src/utils/keywords.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@ const _supported_kw_args = (
loglevel = _loglevel_default,
statistics = :no
),
kbase = (
check = false,
ordering = InputOrdering(),
monoms = :dense,
loglevel = _loglevel_default,
statistics = :no
),
fglm = (
check = false,
monoms = :dense,
statistics = :no,
loglevel = _loglevel_default,
),
groebner_learn = (
seed = 42,
ordering = InputOrdering(),
Expand Down
24 changes: 12 additions & 12 deletions test/groebner/homogenization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ end
@test gb1 == gb2

# Also test learn / apply
if field != QQ
context3, gb3 =
Groebner.groebner_learn(system, ordering=ord, homogenize=:yes)
context4, gb4 =
Groebner.groebner_learn(system, ordering=ord, homogenize=:no)
for _ in 1:4
flag3, gb33 = Groebner.groebner_apply!(context3, system)
flag4, gb44 = Groebner.groebner_apply!(context4, system)
@test flag3 && flag4
@test gb1 == gb3 == gb4 == gb33 == gb44
end
end
# if field != QQ
# context3, gb3 =
# Groebner.groebner_learn(system, ordering=ord, homogenize=:yes)
# context4, gb4 =
# Groebner.groebner_learn(system, ordering=ord, homogenize=:no)
# for _ in 1:4
# flag3, gb33 = Groebner.groebner_apply!(context3, system)
# flag4, gb44 = Groebner.groebner_apply!(context4, system)
# @test flag3 && flag4
# @test gb1 == gb3 == gb4 == gb33 == gb44
# end
# end
end
end
end
2 changes: 0 additions & 2 deletions test/output_inferred.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ import AbstractAlgebra
@test @inferred Groebner.normalform([x, y], x + 1) == R(1)
@test @inferred Groebner.normalform([x, y], [x + 1, y + 1, R(0)]) == [R(1), R(1), R(0)]
@test @inferred Groebner.isgroebner([x, y]) == true
@test @inferred Groebner.kbase([x^2, y]) == [R(1), R(x)]

R, (x, y) = AbstractAlgebra.GF(2^31 - 1)["x", "y"]
@test @inferred Groebner.groebner([x, y]) == [y, x]
@test @inferred Groebner.normalform([x, y], x + 1) == R(1)
@test @inferred Groebner.normalform([x, y], [x + 1, y + 1, R(0)]) == [R(1), R(1), R(0)]
@test @inferred Groebner.isgroebner([x, y]) == true
@test @inferred Groebner.kbase([x^2, y]) == [R(1), R(x)]

context, gb = Groebner.groebner_learn([x, y])
@test_broken @inferred Groebner.groebner_learn([x, y]) == (context, gb)
Expand Down
2 changes: 1 addition & 1 deletion test/regressions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ end
# this may crash if the comparator is invalid
function bug(gens::Vector{Int}, exps::Vector{Vector{T}}) where {T}
inds = collect(1:length(gens))
cmp = (x, y) -> Groebner.monom_isless(exps[gens[x]], exps[gens[y]], Groebner._DegRevLex{true}([]))
cmp = (x, y) -> Groebner.monom_isless(exps[gens[x]], exps[gens[y]], Groebner.DegRevLex())
sort!(inds, lt=cmp)
@test true
end
Expand Down
12 changes: 0 additions & 12 deletions test/utils/logging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ using Logging
@test flag1 == flag2
@test_throws AssertionError Groebner.isgroebner(f, loglevel=:abcd)

f2 = [x^3, y^2, z]
basis1 = Groebner.kbase(f2)
basis2 = @test_logs Groebner.kbase(f2, loglevel=-3)
@test basis1 == basis2
@test_throws AssertionError Groebner.kbase(f2, loglevel=:pkrst)

gb1 = @test_logs Groebner.groebner(f, loglevel=:debug)
gb1 = @test_logs Groebner.groebner(f, loglevel=:info)
gb1 = @test_logs Groebner.groebner(f, loglevel=:warn)
Expand All @@ -55,11 +49,5 @@ using Logging
flag2 = Groebner.isgroebner(gb, loglevel=-3)
@test flag1 == flag2
@test_throws AssertionError Groebner.isgroebner(f, loglevel=:abcd)

f2 = [x^3, y^2, z]
basis1 = Groebner.kbase(f2)
basis2 = Groebner.kbase(f2, loglevel=-3)
@test basis1 == basis2
@test_throws AssertionError Groebner.kbase(f2, loglevel=:pkrst)
end
end

0 comments on commit 49cce4c

Please sign in to comment.