oneDPL icon indicating copy to clipboard operation
oneDPL copied to clipboard

Not all value checks using type epsilon

Open SergeyKopienko opened this issue 1 year ago • 0 comments

Not all value checks using type epsilon as in the code

        const auto eps = std::numeric_limits<T>::epsilon();
        __is_error = std::fabs(T(expected) - T(actual)) >= eps;

For example - if (!(expected[k] == actual[k])) in this file and etc.

This different behavior were introduced in the PR https://github.com/oneapi-src/oneDPL/pull/1233

SergeyKopienko avatar Jan 25 '24 16:01 SergeyKopienko