1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: fix test failed
Origin: https://github.com/pydata/sparse/issues/594
Applied-Upstream: https://github.com/pydata/sparse/commit/8771e6cca32b2549be1f907aea51a11711c45050
Last-Update: 2023-10-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/sparse/_common.py
+++ b/sparse/_common.py
@@ -796,6 +796,7 @@ def _dot_csc_ndarray_type_sparse(dt1, dt
data = np.empty(nnz, dtype=dtr)
sums = np.zeros(a_shape[0])
mask = np.full(a_shape[0], -1)
+ indptr[0] = 0
nnz = 0
indptr[0] = 0
for i in range(b_shape[1]):
|