Commit 40ce9f97 authored by Viet Dinh's avatar Viet Dinh

fix whitespace errors

parent 0bc44376
...@@ -2517,8 +2517,8 @@ double cv::solvePoly( InputArray _coeffs0, OutputArray _roots0, int maxIters ) ...@@ -2517,8 +2517,8 @@ double cv::solvePoly( InputArray _coeffs0, OutputArray _roots0, int maxIters )
num = num*p + coeffs[n-j-1]; num = num*p + coeffs[n-j-1];
if( j != i ) if( j != i )
{ {
if ( (p - roots[j]).re != 0 || (p - roots[j]).im != 0 ) if ( (p - roots[j]).re != 0 || (p - roots[j]).im != 0 )
denom = denom * (p - roots[j]); denom = denom * (p - roots[j]);
else else
num_same_root++; num_same_root++;
} }
...@@ -2550,14 +2550,14 @@ double cv::solvePoly( InputArray _coeffs0, OutputArray _roots0, int maxIters ) ...@@ -2550,14 +2550,14 @@ double cv::solvePoly( InputArray _coeffs0, OutputArray _roots0, int maxIters )
if( old_num_re < 0 ) num.im = -num.im; if( old_num_re < 0 ) num.im = -num.im;
} }
} }
roots[i] = p - num; roots[i] = p - num;
maxDiff = max(maxDiff, abs(num)); maxDiff = max(maxDiff, abs(num));
} }
if( maxDiff <= 0 ) if( maxDiff <= 0 )
break; break;
} }
if( coeffs0.channels() == 1 ) if( coeffs0.channels() == 1 )
{ {
const double verySmallEps = 1e-100; const double verySmallEps = 1e-100;
......
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