We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UniformNotNan
UniformOrdered
1 parent 27d6eb6 commit d64c3c3Copy full SHA for d64c3c3
src/lib.rs
@@ -32,6 +32,9 @@ use num_traits::{
32
#[cfg(feature = "std")]
33
pub use num_traits::{Float, Pow};
34
35
+#[cfg(feature = "rand")]
36
+pub use impl_rand::UniformOrdered;
37
+
38
// masks for the parts of the IEEE 754 float
39
const SIGN_MASK: u64 = 0x8000000000000000u64;
40
const EXP_MASK: u64 = 0x7ff0000000000000u64;
@@ -2253,6 +2256,7 @@ mod impl_rand {
2253
2256
type Sampler = UniformNotNan<f64>;
2254
2257
}
2255
2258
2259
+ /// A sampler for a uniform distribution
2260
#[derive(Clone, Copy, Debug, PartialEq)]
2261
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
2262
pub struct UniformOrdered<T>(UniformFloat<T>);
0 commit comments