Skip to main content

ScaledAdd

Trait ScaledAdd 

Source
pub trait ScaledAdd<S> {
    // Required method
    fn scaled_add(&mut self, scalar: S, other: &Self);
}
Expand description

In-place self ← self + scalar · other. Backend-generic vector update.

Required Methods§

Source

fn scaled_add(&mut self, scalar: S, other: &Self)

Add scalar · other into self in place.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ScaledAdd<f64> for f64

Source§

fn scaled_add(&mut self, scalar: f64, other: &Self)

Source§

impl ScaledAdd<f64> for Vec<f64>

Source§

fn scaled_add(&mut self, scalar: f64, other: &Self)

Implementors§