Skip to content

Commit cd88de0

Browse files
committed
explicit init of res array in dot-mat-mat
1 parent f78dd90 commit cd88de0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

quaddtype/numpy_quaddtype/src/quadblas_interface.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ dot_matrix_matrix(PyArrayObject *a, PyArrayObject *b)
290290
}
291291

292292
Sleef_quad *result_data = (Sleef_quad *)PyArray_DATA(result);
293+
for (npy_intp i = 0; i < m * n; i++) {
294+
result_data[i] = Sleef_cast_from_doubleq1(0.0);
295+
}
293296

294297
npy_intp lda, ldb, ldc;
295298

0 commit comments

Comments
 (0)