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

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jun 10, 2020
1 parent 05eba1e commit 7b70830
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/sage/matrix/matrix_integer_dense.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ cdef class Matrix_integer_dense(Matrix_dense):
cdef inline void get_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, mpz_t value)
cdef inline double get_unsafe_double(self, Py_ssize_t i, Py_ssize_t j)
cdef bint get_is_zero_unsafe(self, Py_ssize_t, Py_ssize_t)
cpdef zero_pattern_matrix(self)

# HNF Modn
cdef int _hnf_modn(Matrix_integer_dense self, Matrix_integer_dense res,
Expand Down
4 changes: 2 additions & 2 deletions src/sage/matrix/matrix_integer_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1567,14 +1567,14 @@ cdef class Matrix_integer_dense(Matrix_dense):
MS = matrix_space.MatrixSpace(GF(2), self._nrows, self._ncols)
return Matrix_mod2_dense(MS, self, True, True)

def _zero_matrix(self):
cpdef zero_pattern_matrix(self):
"""
Return a matrix that contains 1 if and only if the corresponding entry is 0.
EXAMPLES::
sage: M = Matrix(ZZ, 2, [1,2,-2,0])
sage: M._zero_matrix()
sage: M.zero_pattern_matrix()
[0 0]
[0 1]
"""
Expand Down
1 change: 1 addition & 0 deletions src/sage/matrix/matrix_rational_dense.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ cdef class Matrix_rational_dense(Matrix_dense):
cdef _sub_ui_unsafe_assuming_int(self, Py_ssize_t i, Py_ssize_t j, unsigned long int n)

cdef bint get_is_zero_unsafe(self, Py_ssize_t, Py_ssize_t)
cpdef zero_pattern_matrix(self)

cdef inline Matrix_rational_dense _new_matrix(self, Py_ssize_t nrows, Py_ssize_t ncols)

Expand Down
4 changes: 2 additions & 2 deletions src/sage/matrix/matrix_rational_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1426,14 +1426,14 @@ cdef class Matrix_rational_dense(Matrix_dense):
verbose("done computing right kernel matrix over the rationals for %sx%s matrix" % (self.nrows(), self.ncols()),level=1, t=tm)
return 'computed-iml-rational', K

def _zero_matrix(self):
cpdef zero_pattern_matrix(self):
"""
Return a matrix that contains 1 if and only if the corresponding entry is 0.
EXAMPLES::
sage: M = Matrix(QQ, 2, [1,2/3,-2,0])
sage: M._zero_matrix()
sage: M.zero_pattern_matrix()
[0 0]
[0 1]
"""
Expand Down

0 comments on commit 7b70830

Please sign in to comment.