Computes half log determinant of X, by sum(log(diag(chol(X)))).
X
sum(log(diag(chol(X))))
halflogdetX(X)
A numeric matrix
The half log determinant of X.