Skip to content

Commit

Permalink
Minor cleanup related to FacElemMon and FacElem (#1693)
Browse files Browse the repository at this point in the history
FacElemMon is a monoid, not a ring
  • Loading branch information
fingolfin authored Dec 4, 2024
1 parent fb22ad4 commit cd361f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/HeckeTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ end
Parent for factored elements, ie. power products.
"""
mutable struct FacElemMon{S} <: Ring
mutable struct FacElemMon{S}
base_ring::S # for the base
basis_conjugates_log::Dict{RingElem, Tuple{Int, Vector{ArbFieldElem}}}
basis_conjugates::Dict{RingElem, Tuple{Int, Vector{ArbFieldElem}}}
Expand Down Expand Up @@ -631,6 +631,8 @@ end

FacElemMon(R::S) where {S} = FacElemMon{S}(R)

const FacElemMonDict = AbstractAlgebra.CacheDictType()

"""
FacElem{B, S}
Expand Down
2 changes: 0 additions & 2 deletions src/Misc/FactoredElem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ end

# abstract nonsense

const FacElemMonDict = AbstractAlgebra.CacheDictType{Ring, FacElemMon}()

function (x::FacElemMon{S})() where S
z = FacElem{elem_type(S), S}()
z.fac = Dict{elem_type(S), ZZRingElem}()
Expand Down

0 comments on commit cd361f4

Please sign in to comment.