24.02.1
|
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 83 of file float_ops.h.
References arm_compute::test::validation::b, and 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 100 of file float_ops.h.
References arm_compute::quantization::epsilon.
Referenced by ClGemmMatrixMultiplyNativeKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsMMULKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), arm_compute::cpu::matrix_matrix_multiply_f32(), and arm_compute::cpu::vector_matrix_multiply_f32().
|
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 112 of file float_ops.h.
References arm_compute::quantization::epsilon.
Referenced by ClGemm::configure(), and ClGemm::validate().