Checks whether x is positive definite, stop otherwise.
x
checkPositiveDefinite(x, message = NULL, stop = TRUE)
message
identifier for x
stop
whether to stop or to throw a warning