Skip to content

Commit

Permalink
test with real and complex data types.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapriot committed Oct 12, 2024
1 parent bae9724 commit 5f17cf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_Scipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ def test_solver(a_matrix, n_rhs, solver):

npt.assert_allclose(x, b, atol=tol)

def test_iterative_solver_linear_op():
@pytest.mark.parametrize('dtype', [np.float64, np.complex128])
def test_iterative_solver_linear_op(dtype):
n = 10
A = aslinearoperator(sp.eye(n))
A = aslinearoperator(sp.eye(n).astype(dtype))

Ainv = SolverCG(A)

Expand Down

0 comments on commit 5f17cf8

Please sign in to comment.