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 1 year ago

DominikHe262 commented 1 year 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 1 year ago

Thanks a lot!