Skip to content

Commit 00aaebd

Browse files
committed
Recognize "COOR" format and use simpler representation for it.
1 parent 0a5fdda commit 00aaebd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sparse/numba_backend/_coo/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,9 @@ def __binsparse__(self) -> tuple[dict, list[np.ndarray]]:
15571557
},
15581558
}
15591559
}
1560-
},
1560+
}
1561+
if self.ndim != 2
1562+
else "COOR",
15611563
"shape": list(self.shape),
15621564
"number_of_stored_values": self.nnz,
15631565
"data_types": {

0 commit comments

Comments
 (0)