Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
sumiya11 committed Jul 11, 2023
1 parent 9d79c9b commit abf5da6
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 1,046 deletions.
1 change: 0 additions & 1 deletion src/Groebner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export kbase

export Lex,
DegLex, DegRevLex, InputOrdering, WeightedOrdering, BlockOrdering, MatrixOrdering
export NotPacked, Packed, best_monom_representation

@doc read(joinpath(dirname(@__DIR__), "README.md"), String) Groebner

Expand Down
6 changes: 3 additions & 3 deletions src/f4/basis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ function update_pairset!(
!is_gcd_const(ht.monoms[basis.monoms[i][1]], ht.monoms[new_lead])
lcms[i] = get_lcm(basis.monoms[i][1], new_lead, ht, update_ht)
deg = update_ht.hashdata[lcms[i]].deg
ps[newidx] = SPair(i, idx, lcms[i], pr(deg))
ps[newidx] = SPair(Int32(i), Int32(idx), lcms[i], pr(deg))
else
# lcm == 0 will mark redundancy of an S-pair
lcms[i] = MonomIdx(0)
# ps[newidx] = SPair(i, idx, MonomIdx(0), pr(deg))
ps[newidx] = SPair{pr}(i, idx, MonomIdx(0), typemax(pr))
ps[newidx] = SPair{pr}(Int32(i), Int32(idx), MonomIdx(0), typemax(pr))
end
end

Expand Down Expand Up @@ -385,7 +385,7 @@ function is_redundant!(
# add new S-pair corresponding to Spoly(i, idx)
lcm_new = get_lcm(lead_i, lead_new, ht, ht)
psidx = pairset.load + 1
ps[psidx] = SPair{pt}(i, idx, lcm_new, pt(ht.hashdata[lcm_new].deg))
ps[psidx] = SPair{pt}(Int32(i), Int32(idx), lcm_new, pt(ht.hashdata[lcm_new].deg))

# mark redundant
basis.isredundant[idx] = true
Expand Down
2 changes: 1 addition & 1 deletion src/f4/f4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ function select_normal!(
end
end

@info "Selected $(npairs) pairs"
@log level=-4 "Selected $(npairs) pairs in select_normal!"

reinitialize_matrix!(matrix, npairs)

Expand Down
216 changes: 0 additions & 216 deletions src/gb/correctness.jl

This file was deleted.

Loading

0 comments on commit abf5da6

Please sign in to comment.