Skip to content

Commit

Permalink
Remove FlintQQ
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 31, 2024
1 parent 356bdc3 commit 312639d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/Exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ export FlintPuiseuxSeriesField
export FlintPuiseuxSeriesFieldElem
export FlintPuiseuxSeriesRing
export FlintPuiseuxSeriesRingElem
export FlintQQi
export flog
export floor
export fmma!
Expand Down
2 changes: 1 addition & 1 deletion src/Nemo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ const _ecm_nCs = Vector{Int}[_ecm_nC]
###############################################################################

GaussianIntegers() = ZZiRing()
GaussianRationals() = FlintQQi
GaussianRationals() = QQiField()

###############################################################################
#
Expand Down
2 changes: 0 additions & 2 deletions src/gaussiannumbers/GaussianNumberTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ end
struct QQiField <: Field
end

const FlintQQi = QQiField()

struct QQiFieldElem <: FieldElem
num::ZZiRingElem
den::ZZRingElem
Expand Down
16 changes: 8 additions & 8 deletions src/gaussiannumbers/QQi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ elem_type(::Type{QQiField}) = QQiFieldElem

parent_type(::Type{QQiFieldElem}) = QQiField

parent(a::QQiFieldElem) = FlintQQi
parent(a::QQiFieldElem) = QQiField()

base_ring_type(::Type{QQiField}) = ZZiRing

Expand Down Expand Up @@ -462,22 +462,22 @@ for (A, Bs) in [
return QQiFieldElem
end
function +(a::($A), b::($B))
return FlintQQi(a) + FlintQQi(b)
return QQiField()(a) + QQiField()(b)
end
function +(a::($B), b::($A))
return FlintQQi(a) + FlintQQi(b)
return QQiField()(a) + QQiField()(b)
end
function -(a::($A), b::($B))
return FlintQQi(a) - FlintQQi(b)
return QQiField()(a) - QQiField()(b)
end
function -(a::($B), b::($A))
return FlintQQi(a) - FlintQQi(b)
return QQiField()(a) - QQiField()(b)
end
function *(a::($A), b::($B))
return FlintQQi(a) * FlintQQi(b)
return QQiField()(a) * QQiField()(b)
end
function *(a::($B), b::($A))
return FlintQQi(a) * FlintQQi(b)
return QQiField()(a) * QQiField()(b)
end
end
end
Expand All @@ -493,7 +493,7 @@ for (As, Bs) in [
for A in As, B in Bs
@eval begin
function //(a::($A), b::($B))
return divexact(FlintQQi(a), FlintQQi(b))
return divexact(QQiField()(a), QQiField()(b))
end
end
end
Expand Down

0 comments on commit 312639d

Please sign in to comment.