@@ -6633,7 +6633,6 @@ randmat_with_rank(S::MatSpace{T}, rank::Int, v...) where {T <: RingElement} =
6633
6633
Constructs the matrix over $R$ with entries as in `arr`.
6634
6634
"""
6635
6635
function matrix (R:: NCRing , arr:: AbstractMatrix{T} ) where {T}
6636
- @req ! is_trivial (R) " Zero rings are currently not supported as base ring."
6637
6636
if elem_type (R) === T && all (e -> parent (e) === R, arr)
6638
6637
z = Generic. MatSpaceElem {elem_type(R)} (R, arr)
6639
6638
return z
@@ -6644,7 +6643,6 @@ function matrix(R::NCRing, arr::AbstractMatrix{T}) where {T}
6644
6643
end
6645
6644
6646
6645
function matrix (R:: NCRing , arr:: MatElem )
6647
- @req ! is_trivial (R) " Zero rings are currently not supported as base ring."
6648
6646
return map_entries (R, arr)
6649
6647
end
6650
6648
@@ -6683,7 +6681,6 @@ Constructs the $r \times c$ matrix over $R$, where the entries are taken
6683
6681
row-wise from `arr`.
6684
6682
"""
6685
6683
function matrix (R:: NCRing , r:: Int , c:: Int , arr:: AbstractVecOrMat{T} ) where T
6686
- @req ! is_trivial (R) " Zero rings are currently not supported as base ring."
6687
6684
_check_dim (r, c, arr)
6688
6685
ndims (arr) == 2 && return matrix (R, arr)
6689
6686
if elem_type (R) === T && all (e -> parent (e) === R, arr)
@@ -7065,7 +7062,6 @@ the ring $R$.
7065
7062
function matrix_space (R:: NCRing , r:: Int , c:: Int ; cached:: Bool = true )
7066
7063
# TODO : the 'cached' argument is ignored and mainly here for backwards compatibility
7067
7064
# (and perhaps future compatibility, in case we need it again)
7068
- @req ! is_trivial (R) " Zero rings are currently not supported as base ring."
7069
7065
(r < 0 || c < 0 ) && error (" Dimensions must be non-negative" )
7070
7066
T = elem_type (R)
7071
7067
return MatSpace {T} (R, r, c)
0 commit comments