Function get_iterations

Source
const fn get_iterations<F: Float>() -> (usize, usize)
Expand description

Calculate the number of iterations required for a float type’s precision.

This returns (h, f) where h is the number of iterations to be done using integers at half the float’s bit width, and f is the number of iterations done using integers of the float’s full width. This is further explained in the module documentation.

§Requirements

The initial estimate should have at least 8 bits of precision. If this is not true, results will be inaccurate.