diff --git a/include/boost/multiprecision/pslq.hpp b/include/boost/multiprecision/pslq.hpp index d040d70d9..cbc838ac0 100644 --- a/include/boost/multiprecision/pslq.hpp +++ b/include/boost/multiprecision/pslq.hpp @@ -353,6 +353,11 @@ void display_progress(int64_t iteration, int64_t max_iterations, double norm_bou // See: https://www.davidhbailey.com/dhbpapers/cpslq.pdf, section 3. template std::vector> pslq(std::vector & x, Real max_acceptable_norm_bound, Real gamma, std::ostream& os = std::cout) { + using std::sqrt; + using std::log; + using std::ceil; + using std::pow; + using std::abs; std::vector> relation; /*if (!std::is_sorted(x.begin(), x.end())) { std::cerr << "Elements must be sorted in increasing order.\n"; @@ -360,7 +365,6 @@ std::vector> pslq(std::vector & x, Real max_accep }*/ std::sort(x.begin(), x.end()); - using std::sqrt; if (gamma <= 2/sqrt(3)) { std::cerr << "γ > 2/√3 is required\n"; return relation;