Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into RealMatInverseFix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrodgers committed Aug 10, 2023
2 parents fbd7c27 + 38fd074 commit 092c068
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Nemo"
uuid = "2edaba10-b0f1-5616-af89-8c11ac63239a"
version = "0.35.1"
version = "0.35.3"

[deps]
AbstractAlgebra = "c3fe647b-3220-5bb0-a1ea-a7954cac585d"
Expand Down
5 changes: 4 additions & 1 deletion src/HeckeMiscPoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function roots(K::FqPolyRepField, f::FpPolyRingElem)
return roots(ff)
end

function is_power(a::Union{fqPolyRepFieldElem,FqPolyRepFieldElem,FqFieldElem}, m::Int)
function is_power(a::Union{fpField, FpFieldElem, fqPolyRepFieldElem,FqPolyRepFieldElem,FqFieldElem}, m::Int)
if iszero(a)
return true, a
end
Expand Down Expand Up @@ -537,6 +537,9 @@ function is_squarefree(f::PolyElem{<:FieldElement})
end

function is_squarefree(f::PolyElem{<:RingElement})
if iszero(f)
return true
end
fac = factor_squarefree(f)
return all(e <= 1 for (_, e) in fac)
end
6 changes: 3 additions & 3 deletions src/Nemo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ end

# check whether we are using flint version >= 3.0 (or some recent enough dev version),
# which changed the layout of some structs
_ptr = Libc.dlopen(libflint)
if Libc.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) !== nothing
_ptr = Libdl.dlopen(libflint)
if Libdl.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) !== nothing
const NEW_FLINT = true
libantic = libflint
libarb = libflint
libcalcium = libflint
else
const NEW_FLINT = false
end
Libc.dlclose(_ptr)
Libdl.dlclose(_ptr)

################################################################################
#
Expand Down

0 comments on commit 092c068

Please sign in to comment.