Is there some good multivariate gaussian generator?

I think this algorithm works directly with the covariance matrix (as input argument) which makes it nice and rather easy to work with, but not the most efficient for repeated random-number generations from the same distribution. As I said before in another comment, the most efficient method is to pass the Cholesky factorization to the procedure rather than passing the covariance matrix (which would require the factorization computation on each and every call to the procedure). Here is an implementation that takes the Cholesky Factorization instead of the covariance matrix.

3 Likes