

def test_random_complex(self):
    n = 20
    for i in range(4):
        a = (random([n, n]) + (2j * random([n, n])))
        for i in range(n):
            a[(i, i)] = (20 * (0.1 + a[(i, i)]))
        a_inv = inv(a)
        assert_array_almost_equal(dot(a, a_inv), identity(n))

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