

def test_simple_real(self):
    a = array([[1, 2, 3], [4, 5, 6], [7, 8, 10]], dtype=float)
    a_pinv = pinv(a)
    assert_array_almost_equal(dot(a, a_pinv), np.eye(3))
    a_pinv = pinv2(a)
    assert_array_almost_equal(dot(a, a_pinv), np.eye(3))

dataset/ETHPy150Open scipy/scipy/scipy/linalg/tests/test_basic.py TestPinv.test_simple_real/original