

def test_simple(self):
    a = [[1, 2], [3, 4]]
    a_inv = inv(a)
    assert_array_almost_equal(dot(a, a_inv), [[1, 0], [0, 1]])
    a = [[1, 2, 3], [4, 5, 6], [7, 8, 10]]
    a_inv = inv(a)
    assert_array_almost_equal(dot(a, a_inv), [[1, 0, 0], [0, 1, 0], [0, 0, 1]])

dataset/ETHPy150Open scipy/scipy/scipy/linalg/tests/test_basic.py TestInv.test_simple/original