I'm getting confused about the difference between diagonalising a matrix $A$ and finding a matrix $P$ such that $P^{-1}AP$ is diagonal.
If I want to diagonalise the matrix A, am I correct in finding the eigenvalues and then setting them onto the diagonal of a new matrix and placing zeros everywhere else?
And if I want to find a matrix $P$ such that $P^{-1}AP$ is diagonal, do I find the unit eigenvalues of the matrix $A$ and set them as the columns of the matrix $P$?
I have put unit in bold as that is an aspect of which I am particularly unsure about - whether they are to be unit or not.