Is it true that a defective (non-diagonalizable) square matrix has a set of eigen vectors that don't span the whole space? In that case, if we do its singular value decomposition, shouldn't the matrix containing the eigen vectors be less than full rank and hence non-invertible?
If this is true, I'm getting a contradiction. Based on this page: What kind of matrices are non-diagonalizable?, the matrix:
$$ A = \pmatrix{ 2 & 1\\ 0 & 2 } $$
is non-diagonalizable.
Now, I get its eigen matrix in python and try to invert it and nothing explodes.
import numpy as np
a=np.array([[2,1],[0,2]])
np.linalg.inv(np.linalg.svd(a)[0])
What am I missing?
EDIT: Here are the $U$ matrix, diagonal eigen values and $V$ matrix returned by Python. Are they incorrect? Should we even expect the $U$ and $V$ matrices to be non-invertible in this case?
u=[[ 0.78820544, -0.61541221],
[ 0.61541221, 0.78820544]]
lambda=[2.56155281, 1.56155281],
v=[[ 0.61541221, 0.78820544],
[-0.78820544, 0.61541221]]