Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Nov 15, 2024
1 parent 3a41198 commit 4eb68b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/NumFieldOrd/NfOrd/Ideal/Ideal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,9 @@ function _minmod(a::ZZRingElem, b::AbsNumFieldOrderElem)
end

function _minmod_easy(a::ZZRingElem, b::AbsSimpleNumFieldOrderElem)
if is_one(a)
return a
end
Zk = parent(b)
k = number_field(Zk)
if fits(Int, a)
Expand Down Expand Up @@ -1150,7 +1153,6 @@ end


function _minmod_comp(a::ZZRingElem, b::AbsSimpleNumFieldOrderElem)

Zk = parent(b)
k = number_field(Zk)
acom, auncom = ppio(a, index(Zk))
Expand Down
1 change: 0 additions & 1 deletion src/NumFieldOrd/NfOrd/MaxOrd/Polygons.jl
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,6 @@ function _decomposition(O::AbsNumFieldOrder, I::AbsNumFieldOrderIdeal, Ip::AbsNu
Ba = basis(P, copy = false)
for i in 1:degree(O)
if !is_norm_divisible_pp((v*Ba[i] + u).elem_in_nf, modulo)
@assert !is_zero(mod(ZZ(norm((v*Ba[i] + u).elem_in_nf)), modulo))
u = v*Ba[i] + u
break
end
Expand Down

0 comments on commit 4eb68b8

Please sign in to comment.