pub struct Vector {
pub name: &'static str,
pub exact: bool,
pub shape: Option<[usize; 2]>,
pub tol_abs: f64,
pub tol_rel: f64,
pub input: Vec<f64>,
pub output: Vec<f64>,
}Expand description
One recorded numeric vector: the named kernel, its input, and the output the committed file must carry.
Fields§
§name: &'static strVector name as it appears in reference.json.
exact: boolWhether the output must match bit-for-bit (integer pipeline) or
within the recorded tolerance (f64 trig kernels).
shape: Option<[usize; 2]>[w, h] of the recorded matrix, when the vector is a 2D block.
tol_abs: f64Tolerance budgets (both recorded per vector even when
Vector::exact is true).
tol_rel: f64See Vector::tol_abs.
input: Vec<f64>Kernel input, hex-recorded in the file.
output: Vec<f64>Kernel output the committed file must carry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vector
impl RefUnwindSafe for Vector
impl Send for Vector
impl Sync for Vector
impl Unpin for Vector
impl UnsafeUnpin for Vector
impl UnwindSafe for Vector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more