Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non const parameters in rand_exp_range #71

Merged
merged 1 commit into from
Mar 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/samplers/gaussian_samplers.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ NT get_max_coord(const NT &l, const NT &u, const NT &a_i) {

// Pick a point from the distribution exp(-a_i||x||^2) on the chord
template <typename Parameters, typename Point, typename NT>
void rand_exp_range(Point const &lower, Point const & upper, const NT &a_i, Point &p, Parameters const& var) {
void rand_exp_range(Point &lower, Point & upper, const NT &a_i, Point &p, Parameters const& var) {
typedef typename Parameters::RNGType RNGType;
NT r, r_val, fn;
const NT tol = 0.00000001;
Expand Down