pub trait Axpy: Sized {
// Required methods
fn axpy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(
alpha: &Self,
x: &V,
y: &mut W,
);
fn axpy_mat(alpha: &Self, x: &dyn Matrix<Self>, y: &mut dyn Matrix<Self>);
}
Expand description
Computes a * x + y
and stores the result in y
.
Required Methods§
fn axpy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( alpha: &Self, x: &V, y: &mut W, )
fn axpy_mat(alpha: &Self, x: &dyn Matrix<Self>, y: &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.