Cholesky factoring of (semi-)definite symmetric matrices