Skip to content

Commit 3a6d955

Browse files
authored
Improve dot performance (#389)
- improves dot for two COO arrays, fixes #331 - I used the same algorithm that scipy uses. - It's a bit slower than scipy because to ensure sorted coordinates, we have to do some sorting. - add dot for GCXS arrays - Uses the same algorithm. - Works for `csr @ csr` and `csc @ csc` - I found that the `csr @ csc` dot product-based algorithm was just to slow, so we convert one of the arrays. - add io for GCXS arrays
1 parent 883530b commit 3a6d955

File tree

11 files changed

+1647
-815
lines changed

11 files changed

+1647
-815
lines changed

sparse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ._coo import COO
1+
from ._coo import COO, as_coo
22
from ._dok import DOK
33
from ._sparse_array import SparseArray
44
from ._utils import random

0 commit comments

Comments
 (0)