MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / is_zero

Function is_zero

src/core/utils/helpers/float_ops.h:112–115  ·  view source on GitHub ↗

Checks if the input floating point number is 0.0f checking if the difference is within a range defined with epsilon * * @param[in] a Input floating point number * @param[in] epsilon (Optional) Epsilon used to define the error bounds * * @return True if number is close to 0.0f */

Source from the content-addressed store, hash-verified

110 * @return True if number is close to 0.0f
111 */
112inline bool is_zero(float a, float epsilon = 0.00001f)
113{
114 return std::abs(0.0f - a) <= epsilon;
115}
116} // namespace float_ops
117} // namespace helpers
118} // namespace arm_compute

Callers 6

configureMethod · 0.85
validateMethod · 0.85
validate_argumentsFunction · 0.85
validate_argumentsFunction · 0.85
validate_argumentsFunction · 0.85
validate_argumentsFunction · 0.85

Calls 1

absFunction · 0.85

Tested by

no test coverage detected