Open Ganar-lab opened 1 week ago
A couple of notes:
sparse
0.15.4 is released on PyPI. Numba is installed alongside sparse
Hi, thank you for your quick answer. I understand now why this is enforced. It might be worth adding a comment in the documentation of sparse.COO (where actually the parameter idx_type is missing).
Note that we can nonetheless change the dtype of the coords attribute after initialization - useful for storing only purposes.
I'd be happy to accept a PR for a documentation update.
sparse version checks
[X] I checked that this issue has not been reported before list of issues.
[X] I have confirmed this bug exists on the latest version of sparse.
[ ] I have confirmed this bug exists on the main branch of sparse.
Describe the bug
If you want to obtain create a muldimensional sparse array with idx_dtype=np.uint8 from a numpy array whose size is larger than 256, but whose max(shape) is smaller, you get an unexpected error.
Steps or code to reproduce the bug
This code
Expected results
I would have expected no error, and an output with the correct shape and the correct idx_dtype.
Actual results
Please describe your system.
Relevant log output
No response