Skip to content

Commit 675d6b3

Browse files
committed
using declarations. [CI SKIP]
1 parent 0fb9b9c commit 675d6b3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/boost/multiprecision/pslq.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,18 @@ void display_progress(int64_t iteration, int64_t max_iterations, double norm_bou
353353
// See: https://www.davidhbailey.com/dhbpapers/cpslq.pdf, section 3.
354354
template<typename Real>
355355
std::vector<std::pair<int64_t, Real>> pslq(std::vector<Real> & x, Real max_acceptable_norm_bound, Real gamma, std::ostream& os = std::cout) {
356+
using std::sqrt;
357+
using std::log;
358+
using std::ceil;
359+
using std::pow;
360+
using std::abs;
356361
std::vector<std::pair<int64_t, Real>> relation;
357362
/*if (!std::is_sorted(x.begin(), x.end())) {
358363
std::cerr << "Elements must be sorted in increasing order.\n";
359364
return relation;
360365
}*/
361366

362367
std::sort(x.begin(), x.end());
363-
using std::sqrt;
364368
if (gamma <= 2/sqrt(3)) {
365369
std::cerr << "γ > 2/√3 is required\n";
366370
return relation;

0 commit comments

Comments
 (0)