

def test_bad_shapes(self):
    ab = array([[(- 99), 1.0, 1.0], [4.0, 4.0, 4.0]])
    b = array([[1.0, 4.0], [4.0, 2.0]])
    assert_raises(ValueError, solveh_banded, ab, b)
    assert_raises(ValueError, solveh_banded, ab, [1.0, 2.0])
    assert_raises(ValueError, solveh_banded, ab, [1.0])

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