Skip to content

Commit

Permalink
Reference copysign from std namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
auto-differentiation-dev authored Nov 18, 2024
1 parent 63dcd6a commit f37ba21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-suite/basketoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ BOOST_AUTO_TEST_CASE(testRootOfSumExponentials) {
const Real offset = (mt.nextReal() < 0.3)? -1.0 : 0.0;
for (Size j=0; j < n; ++j) {
a[j] = mt.nextReal() + offset;
sig[j] = copysign(1.0, a[j])*mt.nextReal();
sig[j] = std::copysign(Real(1.0), a[j])*mt.nextReal();
}
const Real kMin = detail::SumExponentialsRootSolver(a, sig, 0.0)(-10.0);
const Real kMax = detail::SumExponentialsRootSolver(a, sig, 0.0)( 10.0);
Expand Down

0 comments on commit f37ba21

Please sign in to comment.