Skip to content

Commit

Permalink
Require non-zero coefficient ring in free associative algebra (#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Oct 11, 2024
1 parent 94527c9 commit 5d9aaca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FreeAssociativeAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ function free_associative_algebra(
s::Vector{Symbol};
cached::Bool = true,
)
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
parent_obj = Generic.FreeAssociativeAlgebra{elem_type(R)}(R, s, cached)
return (parent_obj, gens(parent_obj))
end
Expand Down

0 comments on commit 5d9aaca

Please sign in to comment.