lawmurray / LibBi

Bayesian state-space modelling on high-performance hardware, including multicore, GPUs and distributed clusters.
http://www.libbi.org
Other
96 stars 22 forks source link

Fix binomial distribution on GPUs #41

Closed sbfnk closed 6 years ago

sbfnk commented 6 years ago

Because LibBi isn't typed, the return variable k is real. The implementation is copied from GSL's where k is an integer; here we need to call floor explicitly.