@@ -6653,7 +6653,6 @@ julia> using LinearAlgebra ; matrix(GF(5), I(2))
6653
6653
"""
6654
6654
function matrix (R:: NCRing , arr:: AbstractMatrix{T} ) where {T}
6655
6655
Base. require_one_based_indexing (arr)
6656
- @req ! is_trivial (R) " Zero rings are currently not supported as base ring."
6657
6656
if elem_type (R) === T && all (e -> parent (e) === R, arr)
6658
6657
z = Generic. MatSpaceElem {elem_type(R)} (R, arr)
6659
6658
return z
@@ -6665,7 +6664,6 @@ function matrix(R::NCRing, arr::AbstractMatrix{T}) where {T}
6665
6664
end
6666
6665
6667
6666
function matrix (R:: NCRing , arr:: MatElem )
6668
- @req ! is_trivial (R) " Zero rings are currently not supported as base ring."
6669
6667
return map_entries (R, arr)
6670
6668
end
6671
6669
@@ -6704,7 +6702,6 @@ Constructs the $r \times c$ matrix over $R$, where the entries are taken
6704
6702
row-wise from `arr`.
6705
6703
"""
6706
6704
function matrix (R:: NCRing , r:: Int , c:: Int , arr:: AbstractVecOrMat{T} ) where T
6707
- @req ! is_trivial (R) " Zero rings are currently not supported as base ring."
6708
6705
_check_dim (r, c, arr)
6709
6706
ndims (arr) == 2 && return matrix (R, arr)
6710
6707
if elem_type (R) === T && all (e -> parent (e) === R, arr)
@@ -7089,7 +7086,6 @@ the ring $R$.
7089
7086
function matrix_space (R:: NCRing , r:: Int , c:: Int ; cached:: Bool = true )
7090
7087
# TODO : the 'cached' argument is ignored and mainly here for backwards compatibility
7091
7088
# (and perhaps future compatibility, in case we need it again)
7092
- @req ! is_trivial (R) " Zero rings are currently not supported as base ring."
7093
7089
(r < 0 || c < 0 ) && error (" Dimensions must be non-negative" )
7094
7090
T = elem_type (R)
7095
7091
return MatSpace {T} (R, r, c)
0 commit comments