pub enum GainValue {
Scalar(f64),
Matrix(Vec<Vec<f64>>),
}Expand description
A BlockKind::Gain’s own scale factor — a plain scalar (the only form before vector
signals existed, unchanged), or a fixed M x N matrix (row-major, matrix[row][col]) for a
genuine matrix-vector product.
Variants§
Scalar(f64)
A plain scale factor.
Matrix(Vec<Vec<f64>>)
A fixed M x N matrix, row-major (matrix[row][col]).
Trait Implementations§
impl StructuralPartialEq for GainValue
Auto Trait Implementations§
impl Forget for GainValue
impl Freeze for GainValue
impl Move for GainValue
impl RefUnwindSafe for GainValue
impl Send for GainValue
impl Sync for GainValue
impl Unpin for GainValue
impl UnsafeUnpin for GainValue
impl UnwindSafe for GainValue
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