Skip to content

Commit

Permalink
Add conj for QQFieldElem and ZZRingElem (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Jul 18, 2024
1 parent 6cf1363 commit 2c31919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flint/fmpq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ function -(a::QQFieldElem)
return z
end

conj(x::QQFieldElem) = x

###############################################################################
#
# Binary operators
Expand Down
2 changes: 2 additions & 0 deletions src/flint/fmpz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ ceil(::Type{ZZRingElem}, x::ZZRingElem) = x
trunc(::Type{ZZRingElem}, x::ZZRingElem) = x
round(::Type{ZZRingElem}, x::ZZRingElem) = x

conj(x::ZZRingElem) = x

###############################################################################
#
# Binary operators and functions
Expand Down

0 comments on commit 2c31919

Please sign in to comment.