Checks if a squared matrix is positive definite and turn it to positive definied if necessary
positive_definite(m, c = NULL)
m
: Is a 2x2 matrix.c
: Is a small nonegative number.The same matrix (if positive definite) or its modification that is positive definite.
Useful links