

def test_nonpositive(self):
    a = array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], dtype=float)
    a = np.dot(a, a_pinv.T)
    (u, s, vt) = np.linalg.svd(a)
    s[0] *= (- 1)
    a = np.dot((u * s), vt)
    a_pinv = pinv2(a)
    a_pinvh = pinvh(a)
    assert_array_almost_equal(a_pinv, a_pinvh)

dataset/ETHPy150Open scipy/scipy/scipy/linalg/tests/test_basic.py TestPinvSymmetric.test_nonpositive/VarMisuse@53/56 `a`->`a_pinv`