Commit c454d99f authored by Max Lyon's avatar Max Lyon
Browse files

fix bug in find_max_abs_coeff

parent c1fe2358
Pipeline #16820 passed with stages
in 5 minutes and 23 seconds
...@@ -184,7 +184,7 @@ find_max_abs_coeff(SVectorGMM& _v) ...@@ -184,7 +184,7 @@ find_max_abs_coeff(SVectorGMM& _v)
if(std::abs(*c_it) > vmax) if(std::abs(*c_it) > vmax)
{ {
imax = c_it.index(); imax = c_it.index();
vmax = *c_it; vmax = std::abs(*c_it);
} }
return imax; return imax;
......
Supports Markdown
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