Skip to content

Commit

Permalink
replace few occurences of abs by std::abs
Browse files Browse the repository at this point in the history
  • Loading branch information
rjanvier committed May 5, 2024
1 parent fdf4c0e commit e2c5820
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/Jacobi.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ namespace CCCoreLib
PointCoordinateType norm2 = res2.norm(); // should equal 0
PointCoordinateType norm3 = res3.norm(); // should equal 0

if ( abs(norm1) > 1.0e-5
|| abs(norm2) > 1.0e-5
|| abs(norm3) > 1.0e-5 )
if ( std::abs(norm1) > 1.0e-5
|| std::abs(norm2) > 1.0e-5
|| std::abs(norm3) > 1.0e-5 )
{
return false;
}
Expand Down

0 comments on commit e2c5820

Please sign in to comment.