Wouldn’t it make sense to make the algorithms of this library generic under the num_traits::Float trait?
Then, one could not only use double-f64, but also double-f32, and any other type that implements that trait, e.g. the ones provided by the half crate, or future f16 and f128 in Rust.
Wouldn’t it make sense to make the algorithms of this library generic under the
num_traits::Floattrait?Then, one could not only use double-f64, but also double-f32, and any other type that implements that trait, e.g. the ones provided by the half crate, or future
f16andf128in Rust.