Ticket #3376: m4ri_20080620.patch
| File m4ri_20080620.patch, 1.3 kB (added by malb, 5 months ago) |
|---|
-
a/sage/matrix/matrix_mod2_dense.pyx
old new 976 976 [0 0 0] 977 977 """ 978 978 if (int(multiple)%2) != 0: 979 mzd_row_add_offset(self._entries, row_ from, row_to, start_col)979 mzd_row_add_offset(self._entries, row_to, row_from, start_col) 980 980 981 981 cdef swap_rows_c(self, Py_ssize_t row1, Py_ssize_t row2): 982 982 """ … … 1005 1005 [1 0 0] 1006 1006 [1 0 1] 1007 1007 [0 0 0] 1008 1009 sage: A = random_matrix(GF(2),3,65) 1010 1011 sage: B = A.copy() 1012 sage: B.swap_columns(0,1) 1013 sage: B.swap_columns(0,1) 1014 sage: A == B 1015 True 1016 1017 sage: A.swap_columns(0,64) 1018 sage: A.column(0) == B.column(64) 1019 True 1020 sage: A.swap_columns(63,64) 1021 sage: A.column(63) == B.column(0) 1022 True 1008 1023 """ 1009 1024 mzd_col_swap(self._entries, col1, col2) 1010 1025 1026 1027 1011 1028 def _magma_init_(self): 1012 1029 r""" 1013 1030 Returns a string of self in \Magma form. Does not return \Magma