Skip to content

Commit

Permalink
nnz may not fit in uint8.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Sep 27, 2024
1 parent 457dd56 commit e3d2ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sparse/numba_backend/_coo/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,15 +1539,15 @@ def __binsparse__(self) -> tuple[dict, list[np.ndarray]]:
"shape": list(self.shape),
"number_of_stored_values": self.nnz,
"data_types": {
"pointers_to_1": "uint8",
"pointers_to_1": "uint64",
"indices_1": str(self.coords.dtype),
"values": data_dt,
},
},
"original_source": f"`sparse`, version {__version__}",
}

return descriptor, [np.array([0, self.nnz], dtype=np.uint8), self.coords, self.data]
return descriptor, [np.array([0, self.nnz], dtype=np.uint64), self.coords, self.data]


def as_coo(x, shape=None, fill_value=None, idx_dtype=None):
Expand Down

0 comments on commit e3d2ec1

Please sign in to comment.