Skip to content

Commit 53c93c9

Browse files
authored
Merge pull request #666 from pydata/upgrade-finch-tensor
Upgrade `finch-tensor` dep
2 parents df3ca7f + 82726d5 commit 53c93c9

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tests = [
3838
]
3939
tox = ["sparse[tests]", "tox"]
4040
all = ["sparse[docs,tox]", "matrepr"]
41-
finch = ["finch-tensor>=0.1.10"]
41+
finch = ["finch-tensor>=0.1.11"]
4242

4343
[project.urls]
4444
Documentation = "https://sparse.pydata.org/"

sparse/finch_backend/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
cos,
2525
cosh,
2626
divide,
27+
eye,
2728
float16,
2829
float32,
2930
float64,
@@ -77,6 +78,7 @@
7778
"cos",
7879
"cosh",
7980
"divide",
81+
"eye",
8082
"float16",
8183
"float32",
8284
"float64",

sparse/tests/test_backends.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,8 @@ def test_scipy_sparse_dispatch(backend, format, order):
8080
expected = np.linalg.solve(x, y.ravel())
8181

8282
assert_almost_equal(actual, expected)
83+
84+
actual = splin.inv(x_sp)
85+
expected = np.linalg.inv(x)
86+
87+
assert_almost_equal(actual.todense(), expected)

0 commit comments

Comments
 (0)