Trait leaf::util::Axpby
[−]
[src]
pub trait Axpby<F>: Axpy<F> + Scal<F> { fn axpby(&self, a: &mut SharedTensor<F>, x: &mut SharedTensor<F>, b: &mut SharedTensor<F>, y: &mut SharedTensor<F>) -> Result<(), Error> { ... } fn axpby_plain(&self, a: &SharedTensor<F>, x: &SharedTensor<F>, b: &SharedTensor<F>, y: &mut SharedTensor<F>) -> Result<(), Error> { ... } }
Extends IBlas with Axpby
Provided Methods
fn axpby(&self, a: &mut SharedTensor<F>, x: &mut SharedTensor<F>, b: &mut SharedTensor<F>, y: &mut SharedTensor<F>) -> Result<(), Error>
Performs the operation y := a*x + b*y .
Consists of a scal(b, y) followed by a axpby(a,x,y).
fn axpby_plain(&self, a: &SharedTensor<F>, x: &SharedTensor<F>, b: &SharedTensor<F>, y: &mut SharedTensor<F>) -> Result<(), Error>
Performs the operation y := a*x + b*y .
Consists of a scal(b, y) followed by a axpby(a,x,y).