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

Commit 936668a

Browse files
committed
Add todos
1 parent 518a32f commit 936668a

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
@@ -163,6 +163,9 @@ cdef class Matrix_nmod_dense(Matrix_dense):
163163
#TODO
164164
# __invert__
165165

166+
def __nonzero__(self):
167+
return not nmod_mat_is_zero(self._matrix)
168+
166169
cpdef _sub_(self, _right):
167170
cdef Matrix_nmod_dense right = _right
168171
cdef Matrix_nmod_dense M = self._new(self._nrows, self._ncols)
@@ -191,4 +194,13 @@ cdef class Matrix_nmod_dense(Matrix_dense):
191194
else:
192195
raise ValueError("Matrix must have at least as many rows as columns.")
193196

194-
197+
# random matrix generation
198+
# swap rows, columns
199+
# transpose
200+
# charpoly and minpoly
201+
# nmod_mat_pow
202+
# nmod_mat_trace
203+
# rank and det (only primes)
204+
# right_kernel_matrix (nmod_mat_nullspace)
205+
# solve (nmod_mat_can_solve)
206+
# row reduction (nmod_mat_rref)

0 commit comments

Comments
 (0)