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

Commit

Permalink
small mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jun 13, 2020
1 parent bf0352f commit 2a08abe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sage/matrix/matrix_generic_sparse.pyx
Expand Up @@ -214,7 +214,7 @@ cdef class Matrix_generic_sparse(matrix_sparse.Matrix_sparse):
[1 0 0 0]
[0 0 0 1]
"""
return (i,j) in self._entries
return (i,j) not in self._entries

def _pickle(self):
version = 0
Expand Down
4 changes: 3 additions & 1 deletion src/sage/matrix/matrix_gf2e_dense.pyx
Expand Up @@ -736,7 +736,9 @@ cdef class Matrix_gf2e_dense(matrix_dense.Matrix_dense):
sage: bool(zero)
False
"""
return not mzed_is_zero(self._entries)
if self._nrows and self._ncols:
return not mzed_is_zero(self._entries)
return False

def _list(self):
"""
Expand Down

0 comments on commit 2a08abe

Please sign in to comment.