From 675d6b3457ac21c59972d06a912e3ebc2d0acdf6 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 7 Aug 2020 17:01:00 -0400 Subject: [PATCH] using declarations. [CI SKIP] --- include/boost/multiprecision/pslq.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;