pub trait Scal: Sized {
// Required methods
fn scal<V: ?Sized + Vector<Self>>(alpha: &Self, x: &mut V);
fn scal_mat(alpha: &Self, x: &mut dyn Matrix<Self>);
}
Expand description
Computes a * x
and stores the result in x
.
Required Methods§
fn scal<V: ?Sized + Vector<Self>>(alpha: &Self, x: &mut V)
fn scal_mat(alpha: &Self, x: &mut dyn Matrix<Self>)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.