Skip to content

Commit

Permalink
Fix non const parameters in rand_exp_range (GeomScale#71)
Browse files Browse the repository at this point in the history
Remove const from function parameter
  • Loading branch information
panagiotisrep authored and vissarion committed May 18, 2020
1 parent 5619f66 commit 76f893d
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 76f893d

Please sign in to comment.