Given a non-invertible, diagonalizable matrix, $A$., I wish to transform it into another matrix $B$, which that satisfies:
- $B$ is invertible
- all non-zero eigenvalues of $A$, are also eigenvalues of $B$
- all of the eigenvectors correspond to non-zero eigenvalues of $A$, are also eigenvectors that correspond to the same eigenvalues of $B$
There'sThere are no other constraints on $B$.
What is the simplest way to calculate such a matrix $B$? (of course, there'rethere are infinitely many such matrices, but I want an easy way to calculate some such a matrix $B$).
Thanks in advance!