Skip to main content

OuterBuilder

Trait OuterBuilder 

Source
pub trait OuterBuilder<'a, T, Lx, Ly, Dx: Dim, Dy: Dim>
where Lx: Layout + 'a, Ly: Layout + 'a, T: 'a,
{ // Required methods fn scale(self, alpha: T) -> Self; fn eval(self) -> Array<T, (Dx, Dy)>; fn write<La: Layout>(self, a: &mut Slice<T, (Dx, Dy), La>); fn add_to<La: Layout>(self, a: &mut Slice<T, (Dx, Dy), La>); }
Expand description

Builder interface for configuring outer product and rank-1 update

Required Methods§

Source

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

α := α·α'

Source

fn eval(self) -> Array<T, (Dx, Dy)>

Returns α·xy

Source

fn write<La: Layout>(self, a: &mut Slice<T, (Dx, Dy), La>)

a := α·xy

Source

fn add_to<La: Layout>(self, a: &mut Slice<T, (Dx, Dy), La>)

Rank-1 update: A := α·x·yᵀ + A

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§