ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nike Namespace Reference

Data Structures

class  AbsoluteEpsilonEqualFunctor
 
class  RelativeEpsilonEqualFunctor
 

Functions

AbsoluteEpsilonEqualFunctor absolute_epsilon_equal (float tolerance)
 
RelativeEpsilonEqualFunctor relative_epsilon_equal (unsigned tolerance)
 

Function Documentation

◆ absolute_epsilon_equal()

AbsoluteEpsilonEqualFunctor nike::absolute_epsilon_equal ( float  tolerance)
Note
AbsoluteEpsilonEqualFunctor uses its own rule for NaN values.

For example, "NAN == NAN" is false but "absolute_epsilon_equal(0.001f)(NAN, NAN)" is true.

Definition at line 37 of file AbsoluteEpsilonEqual.cpp.

◆ relative_epsilon_equal()

RelativeEpsilonEqualFunctor nike::relative_epsilon_equal ( unsigned  tolerance)
Note
RelativeEpsilonEqualFunctor uses its own rule for NaN values.

For example, "NAN == NAN" is false but "relative_epsilon_equal(1)(NAN, NAN)" is true.

Definition at line 41 of file RelativeEpsilonEqual.cpp.