import numpy as np
import numpy.linalg as la
X = np.random.randn(3,3)
U, singvals, VT = la.svd(X)
V = VT.T
Sigma = np.diag(singvals)
print(U)
print(Sigma)
print(V)
X - U.dot(Sigma).dot(V.T)
U2 = U.copy()
U2[:, 0] *= -1
V2 = V.copy()
V2[:, 0] *= -1
X - U2.dot(Sigma).dot(V2.T)