Hello everyone i am trying to compute the SVD of a matrix with numpy but i get wrong result.
I have this matrix
X = [[ 0 0 8]
[ 0 23 25]
[ 0 0 0]]
I am going through this code:
U, D, VT = np.linalg.svd(X, full_matrices=False)
X_remake = (U @ np.diag(D ) @ VT)
But the result that i get is this which is obviously wrong:
X_remake = ([[0.00000000e+00, 1.13509861e-15, 8.00000000e+00],
[0.00000000e+00, 2.30000000e+01, 2.50000000e+01],
[0.00000000e+00, 0.00000000e+00, 0.00000000e+00]])