21.02
|
Data Structures | |
union | RawFloat |
Functions | |
bool | is_equal_ulps (float a, float b, int max_allowed_ulps=0) |
Checks if two floating point numbers are equal given an allowed number of ULPs. More... | |
bool | is_one (float a, float epsilon=0.00001f) |
Checks if the input floating point number is 1.0f checking if the difference is within a range defined with epsilon. More... | |
bool | is_zero (float a, float epsilon=0.00001f) |
Checks if the input floating point number is 0.0f checking if the difference is within a range defined with epsilon. More... | |
|
inline |
Checks if two floating point numbers are equal given an allowed number of ULPs.
[in] | a | First number to compare |
[in] | b | Second number to compare |
[in] | max_allowed_ulps | (Optional) Number of allowed ULPs |
Definition at line 80 of file float_ops.h.
References RawFloat::i32.
|
inline |
Checks if the input floating point number is 1.0f checking if the difference is within a range defined with epsilon.
[in] | a | Input floating point number |
[in] | epsilon | (Optional) Epsilon used to define the error bounds |
Definition at line 97 of file float_ops.h.
References arm_compute::quantization::epsilon.
Referenced by CLGEMMMatrixMultiplyNativeKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), and CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure().
|
inline |
Checks if the input floating point number is 0.0f checking if the difference is within a range defined with epsilon.
[in] | a | Input floating point number |
[in] | epsilon | (Optional) Epsilon used to define the error bounds |
Definition at line 109 of file float_ops.h.
References arm_compute::quantization::epsilon.
Referenced by CLGEMMMatrixMultiplyNativeKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMMatrixMultiplyReshapedKernel::configure(), CLGEMM::configure(), and CLGEMM::validate().