Skip to content

Commit

Permalink
Require non-zero coefficient ring in universal polynomial ring (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Oct 11, 2024
1 parent 5d9aaca commit 0e8c63d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generic/UnivPoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ x*y - z
```
"""
function universal_polynomial_ring(R::Ring; cached::Bool=true, internal_ordering::Symbol=:lex)
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
T = elem_type(R)
U = mpoly_type(R)

Expand Down

0 comments on commit 0e8c63d

Please sign in to comment.