pub trait Axpby<F>: Axpy<F> + Scal<F> {
// Provided method
fn axpby(
&self,
a: &SharedTensor<F>,
x: &SharedTensor<F>,
b: &SharedTensor<F>,
y: &mut SharedTensor<F>
) -> Result<(), Error> { ... }
}
Expand description
Extends IBlas with Axpby
Provided Methods§
sourcefn axpby(
&self,
a: &SharedTensor<F>,
x: &SharedTensor<F>,
b: &SharedTensor<F>,
y: &mut SharedTensor<F>
) -> Result<(), Error>
fn axpby( &self, a: &SharedTensor<F>, x: &SharedTensor<F>, b: &SharedTensor<F>, y: &mut SharedTensor<F> ) -> Result<(), Error>
Performs the operation y := ax + by .
Consists of a scal(b, y) followed by a axpby(a,x,y).