Skip to content

Commit

Permalink
Relax some signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Sep 21, 2023
1 parent 3827bb4 commit 5e0f5a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NumFieldOrd/NfOrd/Ideal/Prime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ $\mathfrak p$ with $l \leq \deg(\mathfrak p)$ will be returned.
Note that in this case it may happen that $p\mathcal O$ is not the product of the
$\mathfrak p_i^{e_i}$.
"""
function prime_decomposition(O::NfAbsOrd{NfAbsNS, NfAbsNSElem}, p::IntegerUnion, degree_limit::Int = degree(O), lower_limit::Int = 0; cached::Bool = true)
function prime_decomposition(O::NfAbsOrd{<:NumField{QQFieldElem}, <:Any}, p::IntegerUnion, degree_limit::Int = degree(O), lower_limit::Int = 0; cached::Bool = true)
if typeof(p) != Int && fits(Int, p)
return prime_decomposition(O, Int(p), degree_limit, lower_limit, cached = cached)
end
if typeof(p) != ZZRingElem && typeof(p) != Int
return prime_decomposition(O, ZZRingElem(p), degree_limit, lower_limit, cached = cached)
end

if !divisible(numerator(discriminant(nf(O))), p)
if (nf(O) isa NfAbsNS || nf(O) isa AnticNumberField) && !divisible(numerator(discriminant(nf(O))), p)
return prime_dec_nonindex(O, p, degree_limit, lower_limit)
else
return prime_dec_gen(O, p, degree_limit, lower_limit)
Expand Down

0 comments on commit 5e0f5a6

Please sign in to comment.