Skip to content

Commit 78846ca

Browse files
author
Marie BONBOIRE
committed
add missed zeroed_alloc
1 parent bd431d3 commit 78846ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/matrix/matrix_integer_dense.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ cdef class Matrix_integer_dense(Matrix_dense):
16141614
return self._mod_two()
16151615
elif p < MAX_MODULUS_FLOAT:
16161616
res_f = Matrix_modn_dense_float.__new__(Matrix_modn_dense_float,
1617-
matrix_space.MatrixSpace(IntegerModRing(p), self._nrows, self._ncols, sparse=False), None, None, None)
1617+
matrix_space.MatrixSpace(IntegerModRing(p), self._nrows, self._ncols, sparse=False), None, None, None, zeroed_alloc=False)
16181618
for i from 0 <= i < self._nrows:
16191619
res_row_f = res_f._matrix[i]
16201620
for j from 0 <= j < self._ncols:
@@ -1623,7 +1623,7 @@ cdef class Matrix_integer_dense(Matrix_dense):
16231623

16241624
elif p < MAX_MODULUS_DOUBLE:
16251625
res_d = Matrix_modn_dense_double.__new__(Matrix_modn_dense_double,
1626-
matrix_space.MatrixSpace(IntegerModRing(p), self._nrows, self._ncols, sparse=False), None, None, None)
1626+
matrix_space.MatrixSpace(IntegerModRing(p), self._nrows, self._ncols, sparse=False), None, None, None, zeroed_alloc=False)
16271627
for i from 0 <= i < self._nrows:
16281628
res_row_d = res_d._matrix[i]
16291629
for j from 0 <= j < self._ncols:
@@ -1649,11 +1649,11 @@ cdef class Matrix_integer_dense(Matrix_dense):
16491649
if p < MAX_MODULUS_FLOAT:
16501650
res.append( Matrix_modn_dense_float.__new__(Matrix_modn_dense_float,
16511651
matrix_space.MatrixSpace(IntegerModRing(p), self._nrows, self._ncols, sparse=False),
1652-
None, None, None) )
1652+
None, None, None, zeroed_alloc=False) )
16531653
elif p < MAX_MODULUS_DOUBLE:
16541654
res.append( Matrix_modn_dense_double.__new__(Matrix_modn_dense_double,
16551655
matrix_space.MatrixSpace(IntegerModRing(p), self._nrows, self._ncols, sparse=False),
1656-
None, None, None) )
1656+
None, None, None, zeroed_alloc=False) )
16571657
else:
16581658
raise ValueError("p=%d too big."%p)
16591659

0 commit comments

Comments
 (0)