Generates the D matrix of the LDL decomposition from the output of the 'sparse_chol' function
sparse_D(mat)
mat
List returned by 'sparse_chol'
A matrix of class 'ddiMatrix'