We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b6ee9 commit 6e9e640Copy full SHA for 6e9e640
tests/test_sparse_lu.py
@@ -61,3 +61,15 @@
61
x_reconstructed[P_cols_indices] = y
62
63
assert nanoeigenpy.is_approx(x_reconstructed, x_true, 1e-6)
64
+
65
+splu_transpose = splu.transpose()
66
+splu_adjoint = splu.adjoint()
67
68
+x_true = rng.random(dim)
69
+b_transpose = A.T.dot(x_true)
70
+x_est = splu_transpose.solve(b_transpose)
71
+assert nanoeigenpy.is_approx(x_true, x_est)
72
73
+x_est_adj = splu_adjoint.solve(b_transpose)
74
+assert nanoeigenpy.is_approx(x_true, x_est_adj)
75
+assert nanoeigenpy.is_approx(x_est, x_est_adj)
0 commit comments