Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit ba439fc

Browse files
committedMar 24, 2021
Merge branch 'u/roed/nmod_mat' of git://trac.sagemath.org/sage into nmod_mat
2 parents d69baff + 936668a commit ba439fc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed
 

‎src/sage/matrix/matrix_nmod_dense.pyx

+13-1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ cdef class Matrix_nmod_dense(Matrix_dense):
176176
#TODO
177177
# __invert__
178178

179+
def __nonzero__(self):
180+
return not nmod_mat_is_zero(self._matrix)
181+
179182
cpdef _sub_(self, _right):
180183
cdef Matrix_nmod_dense right = _right
181184
cdef Matrix_nmod_dense M = self._new(self._nrows, self._ncols)
@@ -205,4 +208,13 @@ cdef class Matrix_nmod_dense(Matrix_dense):
205208
else:
206209
raise ValueError("Matrix must have at least as many rows as columns.")
207210

208-
211+
# random matrix generation
212+
# swap rows, columns
213+
# transpose
214+
# charpoly and minpoly
215+
# nmod_mat_pow
216+
# nmod_mat_trace
217+
# rank and det (only primes)
218+
# right_kernel_matrix (nmod_mat_nullspace)
219+
# solve (nmod_mat_can_solve)
220+
# row reduction (nmod_mat_rref)

0 commit comments

Comments
 (0)
This repository has been archived.