Baremetal-NN
Baremetal-NN API documentation
Loading...
Searching...
No Matches

◆ float_equal()

static uint8_t float_equal ( float  golden,
float  actual,
float  rel_err 
)
inlinestatic

float_equal

Checks if two floating-point numbers are equal within a relative error.

Parameters
goldenThe expected value.
actualThe actual value.
rel_errThe relative error tolerance.
Returns
1 if the numbers are equal within the relative error, 0 otherwise.