tmg-hmc is a Python implementation of the Exact HMC sampling algorithm from Pacman and Paninski (2014) for truncated multivariate gaussian distributions with linear and quadratic …