Skip to content

Commit 3ab7db8

Browse files
author
Marie BONBOIRE
committed
_matrix in matrix_from_rows
1 parent f28b6c2 commit 3ab7db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/matrix/matrix_modn_dense_template.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3127,7 +3127,7 @@ cdef class Matrix_modn_dense_template(Matrix_dense):
31273127
for i, row in enumerate(rows):
31283128
if row < 0 or row >= self._nrows:
31293129
raise IndexError("row index out of range")
3130-
memcpy(A._entries+(i*self._ncols), self._entries+(row*self._ncols), sizeof(celement)*self._ncols)
3130+
memcpy(A._matrix[i], self._matrix[row], sizeof(celement)*self._ncols)
31313131

31323132
return A
31333133

0 commit comments

Comments
 (0)