Does Eigen contains an algorithm for solving nearest correlation matrix problems?
Asked
Active
Viewed 271 times
1 Answers
1
You can use the SelfAdjointEigenSolver
to decompose your non-positive definite matrix, edit the negative eigenvalues to something slightly positive and (manually) re-compose the matrix.

chtz
- 17,329
- 4
- 26
- 56
-
Thanks, for the suggestion! I really appropriate it! – Gluttton Jul 19 '18 at 10:24