gboehl / DIMESampler.jl

Differential-Independence Mixture Ensemble (DIME) MCMC sampling for Julia
MIT License
18 stars 1 forks source link

Small Julia-style suggestions #4

Closed DominikHe262 closed 2 years ago

DominikHe262 commented 2 years ago

In Julia, zeros() is less efficient than creating an empty Array first and then filling it with something. Also, lprop_old = logpdf(dist, x[:, xchnge]) throws an error if xchnge is empty.

gboehl commented 2 years ago

Thanks a lot!