We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11baeed commit 95979a0Copy full SHA for 95979a0
src/sage/matrix/matrix_gf2e_dense.pyx
@@ -1085,6 +1085,8 @@ cdef class Matrix_gf2e_dense(matrix_dense.Matrix_dense):
1085
sage: B[2] == A[2]
1086
True
1087
"""
1088
+ if self._ncols == 0:
1089
+ return
1090
mzed_row_swap(self._entries, row1, row2)
1091
1092
cdef swap_columns_c(self, Py_ssize_t col1, Py_ssize_t col2):
@@ -1123,6 +1125,8 @@ cdef class Matrix_gf2e_dense(matrix_dense.Matrix_dense):
1123
1125
sage: A.column(14) == B.column(0)
1124
1126
1127
1128
+ if self._nrows == 0:
1129
1130
mzed_col_swap(self._entries, col1, col2)
1131
1132
def augment(self, right):
0 commit comments