Trait juice::util::Axpby

source ·
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§

source

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).

Implementors§

source§

impl<T: Axpy<f32> + Scal<f32>> Axpby<f32> for T