Ah I see,
please do not explicitly invert matrices. Instead of computing inv(L)*x, do L\x which is solving a system.
Have a look in the ExactInferenceMethod code for an example how to solve systems involving Cholesky factors.


Another thing, please do not transpose matrices, compute the lower Cholesky if you want to transpose