LDL^T Factorisation of Positive-Definite Matrices