ONE - On-device Neural Engine
|
Data Structures | |
class | AbsoluteEpsilonEqualFunctor |
class | RelativeEpsilonEqualFunctor |
Functions | |
AbsoluteEpsilonEqualFunctor | absolute_epsilon_equal (float tolerance) |
RelativeEpsilonEqualFunctor | relative_epsilon_equal (unsigned tolerance) |
AbsoluteEpsilonEqualFunctor nike::absolute_epsilon_equal | ( | float | tolerance | ) |
For example, "NAN == NAN" is false but "absolute_epsilon_equal(0.001f)(NAN, NAN)" is true.
Definition at line 37 of file AbsoluteEpsilonEqual.cpp.
RelativeEpsilonEqualFunctor nike::relative_epsilon_equal | ( | unsigned | tolerance | ) |
For example, "NAN == NAN" is false but "relative_epsilon_equal(1)(NAN, NAN)" is true.
Definition at line 41 of file RelativeEpsilonEqual.cpp.