-2

Does Eigen contains an algorithm for solving nearest correlation matrix problems?

Gluttton
  • 5,739
  • 3
  • 31
  • 58

1 Answers1

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