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 */
| 110 | * @return True if number is close to 0.0f |
| 111 | */ |
| 112 | inline 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 |
no test coverage detected