4 releases (breaking)
0.7.0 | Aug 17, 2021 |
---|---|
0.6.0 | Jul 19, 2021 |
0.5.0 | Jul 2, 2021 |
0.4.0 | Jun 25, 2021 |
#1017 in Machine learning
Used in 5 crates
(3 directly)
5KB
117 lines
This crate provides the Finite
type, which is used to indicate that a floating point number is not infinite and not NaN
. It is similar to the standard library's NonZero{U8, I8, etc.} types.
Example
use tangram_finite::Finite;
let n = <Finite<f32>>::new(1.0).unwrap();
assert!(Finite::new(n.get() / 0.0).is_err());
Dependencies
~0.7–1.4MB
~31K SLoC