Trait rust_blas::vector::ops::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>)

Object Safety§

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§