Skip to main content

MatVecBuilder

Trait MatVecBuilder 

Source
pub trait MatVecBuilder<'a, T, La, Lx, D0: Dim, D1: Dim>
where La: Layout + 'a, Lx: Layout + 'a, T: 'a,
{ // Required methods fn scale(self, alpha: T) -> Self; fn eval(self) -> Array<T, (D0,)>; fn write<Ly: Layout>(self, y: &mut Slice<T, (D0,), Ly>); fn add_to_vec<Ly: Layout>(self, y: &mut Slice<T, (D0,), Ly>); fn add_to_scaled_vec<Ly: Layout>(self, y: &mut Slice<T, (D0,), Ly>, beta: T); }
Expand description

Builder interface for configuring matrix-vector operations

Required Methods§

Source

fn scale(self, alpha: T) -> Self

α := α·α'

Source

fn eval(self) -> Array<T, (D0,)>

Returns α·A·x

Source

fn write<Ly: Layout>(self, y: &mut Slice<T, (D0,), Ly>)

y := α·A·x

Source

fn add_to_vec<Ly: Layout>(self, y: &mut Slice<T, (D0,), Ly>)

y := α·A·x + y

Source

fn add_to_scaled_vec<Ly: Layout>(self, y: &mut Slice<T, (D0,), Ly>, beta: T)

y := α·A·x + β·y

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§