@@ -179,39 +179,6 @@ cdef class nmod_mat_ctx:
179179 """
180180 return self ._is_prime
181181
182- # def zero(self, slong m, slong n):
183- # """Return the zero ``nmod_mat``.
184- #
185- # >>> ctx = nmod_mat_ctx.new(17)
186- # >>> ctx.zero(2, 3)
187- # [0, 0, 0]
188- # [0, 0, 0]
189-
190- # """
191- # cdef nmod_mat r = self.new_nmod_mat()
192- # nmod_mat_zero(r.val)
193- # return r
194-
195- # def one(self, slong m, slong n=-1):
196- # """Return the one ``nmod_mat``.
197-
198- # >>> ctx = nmod_mat_ctx.new(17)
199- # >>> ctx.one(2)
200- # [1, 0]
201- # [0, 1]
202- # >>> ctx.one(2, 3)
203- # [1, 0, 0]
204- # [0, 1, 0]
205-
206- # """
207- # cdef nmod_mat r = self.new_nmod_mat()
208- # if n == -1:
209- # n = m
210- # n = min(m, n)
211- # for i from 0 <= i < n:
212- # nmod_mat_set_entry(r.val, i, i, 1)
213- # return r
214-
215182 def __str__ (self ):
216183 return f" Context for nmod_mat with modulus: {self.mod.n}"
217184
@@ -421,7 +388,7 @@ cdef class nmod_mat(flint_mat):
421388 return t
422389 tv = & (< nmod_mat> t).val[0 ]
423390 if sv.mod.n != tv.mod.n:
424- raise ValueError (" cannot add nmod_mats with different moduli" ) # pragma: no cover
391+ raise ValueError (" cannot add nmod_mats with different moduli" ) # pragma: no cover
425392 if sv.r != tv.r or sv.c != tv.c:
426393 raise ValueError (" incompatible shapes for matrix addition" )
427394 r = s.ctx.new_nmod_mat(sv.r, sv.c)
@@ -455,7 +422,7 @@ cdef class nmod_mat(flint_mat):
455422 return t
456423 tv = & (< nmod_mat> t).val[0 ]
457424 if sv.mod.n != tv.mod.n:
458- raise ValueError (" cannot subtract nmod_mats with different moduli" ) # pragma: no cover
425+ raise ValueError (" cannot subtract nmod_mats with different moduli" ) # pragma: no cover
459426 if sv.r != tv.r or sv.c != tv.c:
460427 raise ValueError (" incompatible shapes for matrix subtraction" )
461428 r = s.ctx.new_nmod_mat(sv.r, sv.c)
0 commit comments