test for non definite matrices was erroneous in chol
test for non definite matrices was erroneous in chol