Skip to content

Commit

Permalink
Compatibility with AbstractAlgebra ideal interface (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
paemurru authored Aug 17, 2024
1 parent a7d6515 commit 339e84a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Misc/PIDIdeal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,18 @@ function ideal(R::PolyRing{<:FieldElem}, x...)
return _ideal_pid(R, x...)
end

function ideal(R::PolyRing{<:FieldElem}, xs::AbstractVector{T}) where T<:RingElement
return _ideal_pid(R, xs)
end

function ideal(R::Field, x...)
return _ideal_pid(R, x...)
end

function ideal(R::Field, xs::AbstractVector{T}) where T<:RingElement
return _ideal_pid(R, xs)
end

# Show

function Base.show(io::IO, x::PIDIdeal)
Expand Down

0 comments on commit 339e84a

Please sign in to comment.