Skip to content

Commit 3a0ec26

Browse files
committed
Rename mpoly_ring to base_ring
1 parent ae5b7c3 commit 3a0ec26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/generic/GenericTypes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ end
417417
###############################################################################
418418

419419
@attributes mutable struct UniversalPolyRing{T <: RingElement} <: AbstractAlgebra.UniversalPolyRing{T}
420-
mpoly_ring::AbstractAlgebra.MPolyRing{T}
420+
base_ring::AbstractAlgebra.MPolyRing{T}
421421

422422
function UniversalPolyRing{T}(
423423
R::Ring, s::Vector{Symbol}, internal_ordering::Symbol, cached::Bool=true

src/generic/UnivPoly.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
###############################################################################
1212

1313
base_ring_type(::Type{<:UniversalPolyRing{T}}) where T = mpoly_ring_type(T)
14-
base_ring(S::UniversalPolyRing) = S.mpoly_ring::base_ring_type(S)
14+
base_ring(S::UniversalPolyRing) = S.base_ring::base_ring_type(S)
1515

1616
coefficient_ring_type(::Type{<:UniversalPolyRing{T}}) where T = parent_type(T)
1717
coefficient_ring(S::UniversalPolyRing) = coefficient_ring(base_ring(S))::coefficient_ring_type(S)
@@ -237,7 +237,7 @@ function _ensure_variables(S::UniversalPolyRing, v::Vector{<:VarName})
237237
end
238238
if !isempty(added_symbols)
239239
new_symbols = vcat(current_symbols, added_symbols)
240-
S.mpoly_ring = AbstractAlgebra.polynomial_ring_only(coefficient_ring(S), new_symbols; internal_ordering=internal_ordering(S), cached=false)
240+
S.base_ring = AbstractAlgebra.polynomial_ring_only(coefficient_ring(S), new_symbols; internal_ordering=internal_ordering(S), cached=false)
241241
end
242242
return idx
243243
end
@@ -248,7 +248,7 @@ function gen(S::UniversalPolyRing, s::VarName)
248248
new_symbols = copy(symbols(S))
249249
push!(new_symbols, Symbol(s))
250250
i = length(new_symbols)
251-
S.mpoly_ring = AbstractAlgebra.polynomial_ring_only(coefficient_ring(S), new_symbols; internal_ordering=internal_ordering(S), cached=false)
251+
S.base_ring = AbstractAlgebra.polynomial_ring_only(coefficient_ring(S), new_symbols; internal_ordering=internal_ordering(S), cached=false)
252252
end
253253
return @inbounds gen(S, i)
254254
end

0 commit comments

Comments
 (0)