Skip to content

Commit 7278134

Browse files
fix two bugs, remove triangularity test
1 parent a67b157 commit 7278134

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/siggb/siggb.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function sig_groebner_basis(sys::Vector{T}; info_level::Int=0, degbound::Int=0)
6363
Rchar = characteristic(R)
6464

6565
# check if input is ok
66-
if Rchar > 2^31
66+
if Rchar > 2^31 || iszero(Rchar)
6767
error("At the moment we only support finite fields up to prime characteristic < 2^31.")
6868
end
6969
sysl = length(sys)

src/siggb/symbolic_pp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ function select_normal!(pairset::Pairset{N},
110110

111111
add_cond = !iszero(reducer_ind)
112112
if add_cond
113-
resize_pivots!(matrix, symbol_ht)
114113
mult = divide(monomial(reducer_sig),
115114
monomial(basis.sigs[reducer_ind]))
116115
lead_idx = write_to_matrix_row!(matrix, basis,
117116
reducer_ind,
118117
symbol_ht, ht, mult,
119118
reducer_sig)
120119
# set pivot
120+
resize_pivots!(matrix, symbol_ht)
121121
matrix.pivots[lead_idx] = matrix.nrows
122122
end
123123
end

0 commit comments

Comments
 (0)