Skip to content
Snippets Groups Projects
Commit ee18066e authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH:replace vcl_pow(ceil,2) by ceil*ceil

parent fef04674
Branches
Tags
No related merge requests found
...@@ -66,7 +66,7 @@ public: ...@@ -66,7 +66,7 @@ public:
for (unsigned sB = 0; sB < this->GetHisto()[0].size(); sB++) for (unsigned sB = 0; sB < this->GetHisto()[0].size(); sB++)
{ {
double nCeil = (static_cast<double>(sB) + 0.5) * this->GetNeighBinLength(); double nCeil = (static_cast<double>(sB) + 0.5) * this->GetNeighBinLength();
double nCeilSquare = vcl_pow(nCeil, 2); double nCeilSquare = nCeil*nCeil;
for (unsigned r = 0; r < this->GetHisto().size(); ++r) for (unsigned r = 0; r < this->GetHisto().size(); ++r)
{ {
double rVal = (static_cast<double>(r) + 0.5) * this->GetOffsetBinLength(); double rVal = (static_cast<double>(r) + 0.5) * this->GetOffsetBinLength();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment