forked from pool/python-scikit-sparse
77d16fd25a
* Fix breaking changes in isspmatrix of scipy >=1.11.0, discontinuing compatibility with csc_array * remove numpy build restrictions - Drop patches scikit-sparse-py312.patch, scipy111.patch: * Included upstream. - Add patch support-scipy-1.14.patch: * Do not call a now removed method in scipy. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-sparse?expand=0&rev=17
25 lines
948 B
Diff
25 lines
948 B
Diff
From ebbbaa4882eeac8fd4a2f4bf8c94c9e6b967cf54 Mon Sep 17 00:00:00 2001
|
|
From: Steve Kowalik <steven@wedontsleep.org>
|
|
Date: Thu, 25 Jul 2024 15:35:29 +1000
|
|
Subject: [PATCH] Switch to csc_matrix.T.conjugate() from .H
|
|
|
|
With scipy 1.14 csc_matrix.H has been removed, after being deprecated in
|
|
1.12. T.conjugate() is the replacement method, switch to it.
|
|
---
|
|
tests/test_cholmod.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/sksparse/test_cholmod.py b/sksparse/test_cholmod.py
|
|
index ed2af70..95bdb18 100644
|
|
--- a/sksparse/test_cholmod.py
|
|
+++ b/sksparse/test_cholmod.py
|
|
@@ -94,7 +94,7 @@ def complex_matrix():
|
|
|
|
def factor_of(factor, matrix):
|
|
return np.allclose(
|
|
- (factor.L() * factor.L().H).todense(), matrix.todense()[factor.P()[:, np.newaxis], factor.P()[np.newaxis, :]]
|
|
+ (factor.L() * factor.L().T.conjugate()).todense(), matrix.todense()[factor.P()[:, np.newaxis], factor.P()[np.newaxis, :]]
|
|
)
|
|
|
|
|