Skip to content

Commit

Permalink
update version?
Browse files Browse the repository at this point in the history
  • Loading branch information
iliailmer committed Nov 14, 2021
1 parent f3a6909 commit 560fc51
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,27 +181,6 @@ end

# ------------------------------------------------------------------------------

function factor_via_singular(polys::Array{<: MPolyElem{fmpq},1})
if isempty(polys)
return []
end
original_ring = parent(polys[1])
R_sing, var_sing = Singular.PolynomialRing(Singular.QQ, map(string, symbols(original_ring)))
result = Array{typeof(polys[1]),1}()
for p in polys
@debug "\t Factoring with Singular a polynomial of size $(length(p))"
@debug p
p_sing = parent_ring_change(p, R_sing)
for f in Singular.factor(p_sing)
@debug f
push!(result, parent_ring_change(f[1], original_ring))
end
end
return result
end

# ------------------------------------------------------------------------------

function fast_factor(poly::MPolyElem{fmpq})
prelim_factors = uncertain_factorization(poly)
cert_factors = map(pair -> pair[1], filter(f -> f[2], prelim_factors))
Expand Down

0 comments on commit 560fc51

Please sign in to comment.