1 2 3 4 5 6 7 8 9 10
extern crate rayon; use num::Float; use std::iter::Sum; /// The float precision of the circuit. pub trait Precision: Default + Float + Sum + Send + Sync {} impl Precision for f64 {} impl Precision for f32 {}
1 2 3 4 5 6 7 8 9 10
extern crate rayon; use num::Float; use std::iter::Sum; /// The float precision of the circuit. pub trait Precision: Default + Float + Sum + Send + Sync {} impl Precision for f64 {} impl Precision for f32 {}