Registered Member
|
Hi Eigen Community,
After I've diagonalized a matrix using:
I want to multiply each eigenvalue by some value and overwrite the original value. I tried looping through each eigenvalue and then assigning the value. For example:
However, that refused to compile. Can anybody tell me how I should be accessing the eigenvalue itself and then be able to overwrite the pre-existing value? Thanks! |
Moderator
|
.eigenvalues() returns a const reference, you need to copy them to your own vector before modifying them:
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]