I have a vector Nx1
with numbers that I want to be the eigenvalues of a matrix X which I am attempting to construct. Essentially, I want to take my Nx1
matrix and list the ith
entry of this vector on the ith
diagonal of this matrix. I have tried various matrix multiplications, but nothing seems to be working. Can someone help me out?
Cheers.
Note that I am attempting to do this in R.