Trait Axpy

Source
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§

Source

fn axpy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( alpha: &Self, x: &V, y: &mut W, )

Source

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.

Implementations on Foreign Types§

Source§

impl Axpy for f32

Source§

fn axpy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( alpha: &f32, x: &V, y: &mut W, )

Source§

fn axpy_mat(alpha: &f32, x: &dyn Matrix<f32>, y: &mut dyn Matrix<f32>)

Source§

impl Axpy for f64

Source§

fn axpy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( alpha: &f64, x: &V, y: &mut W, )

Source§

fn axpy_mat(alpha: &f64, x: &dyn Matrix<f64>, y: &mut dyn Matrix<f64>)

Source§

impl Axpy for Complex32

Source§

fn axpy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( alpha: &Complex32, x: &V, y: &mut W, )

Source§

fn axpy_mat( alpha: &Complex32, x: &dyn Matrix<Complex32>, y: &mut dyn Matrix<Complex32>, )

Source§

impl Axpy for Complex64

Source§

fn axpy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( alpha: &Complex64, x: &V, y: &mut W, )

Source§

fn axpy_mat( alpha: &Complex64, x: &dyn Matrix<Complex64>, y: &mut dyn Matrix<Complex64>, )

Implementors§