mat_inv function

Find inverse of a symmetric positive definite matrix