Function to project a matrix in the space of positive definite matrices
matrix.posdef(A, verbose = TRUE, matrix.name = "Matrix", epsilon = 1e-07)Positive definite matrix
Input matrix to project
Set to FALSE to not display any prints
This is just for internal prints
This factor is added to the diagonal to avoid numerical issues with semi-definit matrices