bayesmix-dev / bayesmix

Flexible Bayesian nonparametric mixture models in C++
https://bayesmix.rtfd.io
BSD 3-Clause "New" or "Revised" License
22 stars 18 forks source link

A couple quick fixes #146

Closed mberaha closed 2 years ago

mberaha commented 2 years ago

SFINAE stopped working because of some missing "const" keywords

the (update_params) argument in draw might be either true or false even if the algorithm is Neal2/8 (since if we're using Neal8 with a semi-conjugate hierarchy, it makes sense to keep updating the parameters for efficiency's sake). However, this was causing an error when using the RandomWalkUpdater because of some check. I just removed the check and things should be fine :)