Skip to content

Commit 7682a8f

Browse files
pcaspersjenkins
authored andcommitted
namespace cleanup
1 parent a8fd35e commit 7682a8f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

QuantExt/test/randomvariable.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ BOOST_AUTO_TEST_CASE(testFunctions) {
152152
BOOST_CHECK_CLOSE((X / Y).at(0), x / y, tol);
153153

154154
BOOST_CHECK_CLOSE((-X).at(0), -x, tol);
155-
BOOST_CHECK_CLOSE((abs(Y)).at(0), abs(y), tol);
156-
BOOST_CHECK_CLOSE((exp(X)).at(0), exp(x), tol);
157-
BOOST_CHECK_CLOSE((log(X)).at(0), log(x), tol);
158-
BOOST_CHECK_CLOSE((sqrt(X)).at(0), sqrt(x), tol);
155+
BOOST_CHECK_CLOSE((QuantExt::abs(Y)).at(0), std::abs(y), tol);
156+
BOOST_CHECK_CLOSE((QuantExt::exp(X)).at(0), std::exp(x), tol);
157+
BOOST_CHECK_CLOSE((QuantExt::log(X)).at(0), std::log(x), tol);
158+
BOOST_CHECK_CLOSE((QuantExt::sqrt(X)).at(0), std::sqrt(x), tol);
159159

160160
BOOST_CHECK_CLOSE((normalCdf(X)).at(0), boost::math::cdf(n, x), tol);
161161
BOOST_CHECK_CLOSE((normalPdf(X)).at(0), boost::math::pdf(n, x), tol);

0 commit comments

Comments
 (0)