Commit 5e86182f authored by Berenger Bramas's avatar Berenger Bramas

Update tests -- add a test for exp 0 which shows lower accuracy

parent d3b1e75e
......@@ -75,7 +75,7 @@ class TestAll : public UTester< TestAll< VecType > > {
}
bool approxEqual(const double v1, const double v2) {
return (std::abs(v1 - v2) / v2) <= 9.999999999999999E-13;
return (std::abs(v1 - v2) / v2) <= 9.999999999999999E-12;
}
bool approxEqualLowAcc(const float v1, const float v2) {
......@@ -253,6 +253,8 @@ class TestAll : public UTester< TestAll< VecType > > {
approxLowAccEqualToArray(VecType(reals).expLowAcc(), expreslowacc);
approxEqualToArray(VecType(reals).sqrt(), sqrtres);
approxEqualToArray(VecType(reals).rsqrt(), rsqrtres);
approxEqualToScalar(VecType(RealType(0)).exp(), std::exp(RealType(0)));
}
{
......
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