BUG: Empty CSR Matrix has multiple indptr instead of 1 #20521
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.sparse
Describe your issue.
When creating an empty
csr_matrix
, instead ofindptr
returning[0]
, it returns[0, 0]
. This is inconsistent with other formats (i.e.csc_matrix
returns [0]).Reproducing Code Example
Error message
SciPy/NumPy/Python version and system information
The text was updated successfully, but these errors were encountered: