Skip to content

Commit 5d9aaca

Browse files
authored
Require non-zero coefficient ring in free associative algebra (#1859)
1 parent 94527c9 commit 5d9aaca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FreeAssociativeAlgebra.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ function free_associative_algebra(
270270
s::Vector{Symbol};
271271
cached::Bool = true,
272272
)
273+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
273274
parent_obj = Generic.FreeAssociativeAlgebra{elem_type(R)}(R, s, cached)
274275
return (parent_obj, gens(parent_obj))
275276
end

0 commit comments

Comments
 (0)