

def test_check_finite(self):
    a = array([[1, 2, 3], [4, 5, 6.0], [7, 8, 10]])
    a_pinv = pinv(a, check_finite=False)
    assert_array_almost_equal(dot(a, a_pinv), [[1, 0, 0], [0, 1, 0], [0, 0, 1]])
    a_pinv = pinv2(a, check_finite=False)
    assert_array_almost_equal(dot(a, a_pinv), [[1, 0, 0], [0, 1, 0], [0, 0, 1]])

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