

def test_01_complex(self):
    ab = array([[0.0, 0.0, 2.0, 2.0], [(- 99), (- 1j), (- 1j), (- 1j)], [4.0, 4.0, 4.0, 4.0]])
    b = array([(2 - 1j), (4.0 - 1j), (4 + 1j), (2 + 1j)])
    x = solveh_banded(ab, b)
    assert_array_almost_equal(x, [0.0, 1.0, 1.0, 0.0])

dataset/ETHPy150Open scipy/scipy/scipy/linalg/tests/test_basic.py TestSolveHBanded.test_01_complex/original