Commit 495a5afc authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[STYLE] used std::namespace for sqrt and added missing include

parent a3634fcf
......@@ -22,6 +22,7 @@
//
//---------------------------------------------------------------------------
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
......@@ -54,7 +55,7 @@ namespace
minSoFar = *( std::min_element( m[i].begin(), m[i].end() ) );
if( minSoFar > thresholdSquare )
{
qr += sqrt( minSoFar );
qr += std::sqrt( minSoFar );
}
}
qr = qr / qsize;
......@@ -71,7 +72,7 @@ namespace
}
if( minSoFar > thresholdSquare )
{
rq += sqrt( minSoFar );
rq += std::sqrt( minSoFar );
}
}
rq = rq / rsize;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment