File math_functions.h

Typedefs

typedef boost::mt19937 rng_t

Functions

template<typename Dtype>
void sample_gaussian(const int n, const Dtype a, const Dtype sigma, Eigen::Matrix<Dtype, Eigen::Dynamic, 1> &r)
template<typename Dtype>
Dtype rng_uniform(const Dtype a, const Dtype b)
template<typename Dtype>
Dtype gaussian_density(const Eigen::Matrix<Dtype, Eigen::Dynamic, 1> &x, const Eigen::Matrix<Dtype, Eigen::Dynamic, 1> &mu, const Eigen::Matrix<Dtype, Eigen::Dynamic, Eigen::Dynamic> &sqrt_cov)