Is it possiable to create a matrix be setting the eigenvalues you wish to end up with?
I am trying to create a 3X3 random matrix with a set of repeated eigenvalues and was wondering is it's possible to set the eigenvalues and then generate matrices for them.
Transformations
A tip: Let
Dbe a diagonal matrix consisting of your eigenvalues. Then, the matrixwhere
Uis any unitary matrix will have the very same eigenvalues. If your eigenvalues are all real and you want to use only real-valued transformation, then you can replace the above bywhere
Qis any orthogonal matrix.another transformation
If you don't care whether or not your matrix is symmetric or Hermitian, then you can use any nonsingular matrix, R to transform your diagonal matrix of eigenvalues.
So you can generate R using RandomMatrix, but you should check that it is nonsingular. This is still not the most general way, but is useful for most purposes (the matrices generated are diagonalizable, with diagonal Jordon forms).