1 | diff --git a/libs/numeric/ublas/test/test_complex_norms.cpp b/libs/numeric/ublas/test/test_complex_norms.cpp
|
---|
2 | index 041972a..f4b1376 100644
|
---|
3 | --- a/libs/numeric/ublas/test/test_complex_norms.cpp
|
---|
4 | +++ b/libs/numeric/ublas/test/test_complex_norms.cpp
|
---|
5 | @@ -34,7 +34,7 @@ BOOST_UBLAS_TEST_DEF ( test_double_complex_norm_2 ) {
|
---|
6 | for (unsigned int i = 0; i < v.size(); ++i)
|
---|
7 | v[i] = dComplex(i, i + 1);
|
---|
8 |
|
---|
9 | - const double expected = sqrt(44.0);
|
---|
10 | + const double expected = std::sqrt(44.0);
|
---|
11 |
|
---|
12 | BOOST_UBLAS_DEBUG_TRACE( "norm is " << norm_2(v) );
|
---|
13 | BOOST_UBLAS_TEST_CHECK(std::abs(norm_2(v) - expected) < TOL);
|
---|
14 | @@ -62,7 +62,7 @@ BOOST_UBLAS_TEST_DEF ( test_float_complex_norm_2 ) {
|
---|
15 | for (unsigned int i = 0; i < v.size(); ++i)
|
---|
16 | v[i] = dComplex(i, i + 1);
|
---|
17 |
|
---|
18 | - const float expected = sqrt(44.0);
|
---|
19 | + const float expected = std::sqrt(44.0);
|
---|
20 |
|
---|
21 | BOOST_UBLAS_DEBUG_TRACE( "norm is " << norm_2(v) );
|
---|
22 | BOOST_UBLAS_TEST_CHECK(std::abs(norm_2(v) - expected) < TOL);
|
---|