@@ -20,63 +20,63 @@ function is_exact_type(a::Type{T}) where {S <: NCRingElem, T <: NCPolyRingElem{S
2020end
2121
2222@doc raw """
23- dense_poly_type (::Type{T}) where T<:NCRingElement
24- dense_poly_type (::T) where T<:NCRingElement
25- dense_poly_type (::Type{S}) where S<:NCRing
26- dense_poly_type (::S) where S<:NCRing
23+ poly_type (::Type{T}) where T<:NCRingElement
24+ poly_type (::T) where T<:NCRingElement
25+ poly_type (::Type{S}) where S<:NCRing
26+ poly_type (::S) where S<:NCRing
2727
2828The type of univariate polynomials with coefficients of type `T` respectively `elem_type(S)`.
2929Falls back to `Generic.NCPoly{T}` respectively `Generic.Poly{T}`.
3030
31- See also [`dense_poly_ring_type `](@ref), [`mpoly_type`](@ref) and [`mpoly_ring_type`](@ref).
31+ See also [`poly_ring_type `](@ref), [`mpoly_type`](@ref) and [`mpoly_ring_type`](@ref).
3232
3333# Examples
3434```jldoctest
35- julia> dense_poly_type (AbstractAlgebra.ZZ(1))
35+ julia> poly_type (AbstractAlgebra.ZZ(1))
3636AbstractAlgebra.Generic.Poly{BigInt}
3737
38- julia> dense_poly_type (elem_type(AbstractAlgebra.ZZ))
38+ julia> poly_type (elem_type(AbstractAlgebra.ZZ))
3939AbstractAlgebra.Generic.Poly{BigInt}
4040
41- julia> dense_poly_type (AbstractAlgebra.ZZ)
41+ julia> poly_type (AbstractAlgebra.ZZ)
4242AbstractAlgebra.Generic.Poly{BigInt}
4343
44- julia> dense_poly_type (typeof(AbstractAlgebra.ZZ))
44+ julia> poly_type (typeof(AbstractAlgebra.ZZ))
4545AbstractAlgebra.Generic.Poly{BigInt}
4646```
4747"""
48- dense_poly_type (:: Type{T} ) where T<: NCRingElement = Generic. NCPoly{T}
49- dense_poly_type (:: Type{S} ) where S<: NCRing = dense_poly_type (elem_type (S))
50- dense_poly_type (x) = dense_poly_type (typeof (x)) # to stop this method from eternally recursing on itself, we better add ...
51- dense_poly_type (:: Type{T} ) where T = throw (ArgumentError (" Type `$T ` must be subtype of `NCRingElement`." ))
48+ poly_type (:: Type{T} ) where T<: NCRingElement = Generic. NCPoly{T}
49+ poly_type (:: Type{S} ) where S<: NCRing = poly_type (elem_type (S))
50+ poly_type (x) = poly_type (typeof (x)) # to stop this method from eternally recursing on itself, we better add ...
51+ poly_type (:: Type{T} ) where T = throw (ArgumentError (" Type `$T ` must be subtype of `NCRingElement`." ))
5252
5353@doc raw """
54- dense_poly_ring_type (::Type{T}) where T<:NCRingElement
55- dense_poly_ring_type (::T) where T<:NCRingElement
56- dense_poly_ring_type (::Type{S}) where S<:NCRing
57- dense_poly_ring_type (::S) where S<:NCRing
54+ poly_ring_type (::Type{T}) where T<:NCRingElement
55+ poly_ring_type (::T) where T<:NCRingElement
56+ poly_ring_type (::Type{S}) where S<:NCRing
57+ poly_ring_type (::S) where S<:NCRing
5858
5959The type of univariate polynomial rings with coefficients of type `T` respectively
60- `elem_type(S)`. Implemented via [`dense_poly_type `](@ref).
60+ `elem_type(S)`. Implemented via [`poly_type `](@ref).
6161
6262See also [`mpoly_type`](@ref) and [`mpoly_ring_type`](@ref).
6363
6464# Examples
6565```jldoctest
66- julia> dense_poly_ring_type (AbstractAlgebra.ZZ(1))
66+ julia> poly_ring_type (AbstractAlgebra.ZZ(1))
6767AbstractAlgebra.Generic.PolyRing{BigInt}
6868
69- julia> dense_poly_ring_type (elem_type(AbstractAlgebra.ZZ))
69+ julia> poly_ring_type (elem_type(AbstractAlgebra.ZZ))
7070AbstractAlgebra.Generic.PolyRing{BigInt}
7171
72- julia> dense_poly_ring_type (AbstractAlgebra.ZZ)
72+ julia> poly_ring_type (AbstractAlgebra.ZZ)
7373AbstractAlgebra.Generic.PolyRing{BigInt}
7474
75- julia> dense_poly_ring_type (typeof(AbstractAlgebra.ZZ))
75+ julia> poly_ring_type (typeof(AbstractAlgebra.ZZ))
7676AbstractAlgebra.Generic.PolyRing{BigInt}
7777```
7878"""
79- dense_poly_ring_type (x) = parent_type (dense_poly_type (x))
79+ poly_ring_type (x) = parent_type (poly_type (x))
8080
8181@doc raw """
8282 var(a::NCPolyRing)
@@ -779,7 +779,7 @@ Like [`polynomial_ring(R::NCRing, s::Symbol)`](@ref) but return only the
779779polynomial ring.
780780"""
781781polynomial_ring_only (R:: T , s:: Symbol ; cached:: Bool = true ) where T<: NCRing =
782- dense_poly_ring_type (T)(R, s, cached)
782+ poly_ring_type (T)(R, s, cached)
783783
784784# Simplified constructor
785785
0 commit comments