Skip to content

Commit

Permalink
Add basic smoketest for solving with sparse array A
Browse files Browse the repository at this point in the history
  • Loading branch information
haasad committed Mar 5, 2024
1 parent 95fdc4f commit 4cd6034
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_basic_solve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# coding: utf-8
import scipy.sparse as sp

from utils import create_test_A_b_rand, basic_solve
from pypardiso.scipy_aliases import pypardiso_solver

Expand All @@ -13,3 +15,9 @@ def test_bvector_smoketest():
def test_bmatrix_smoketest():
A, b = create_test_A_b_rand(matrix=True)
basic_solve(A, b)


def test_Aarray_smoketest():
A, b = create_test_A_b_rand()
A = sp.csr_array(A)
basic_solve(A, b)

0 comments on commit 4cd6034

Please sign in to comment.