pub trait VectorOperations<T>: Sized + Vector<T>
where T: Copy + Axpy + Scal + Dot + Nrm2 + Asum + Iamax,
{ // Provided methods fn update(&mut self, alpha: &T, x: &dyn Vector<T>) -> &mut Self { ... } fn scale(&mut self, alpha: &T) -> &mut Self { ... } fn dot(&self, x: &dyn Vector<T>) -> T { ... } fn abs_sum(&self) -> T { ... } fn norm(&self) -> T { ... } fn max_index(&self) -> usize { ... } }

Provided Methods§

source

fn update(&mut self, alpha: &T, x: &dyn Vector<T>) -> &mut Self

source

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

source

fn dot(&self, x: &dyn Vector<T>) -> T

source

fn abs_sum(&self) -> T

source

fn norm(&self) -> T

source

fn max_index(&self) -> usize

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl VectorOperations<f32> for Vec<f32>

source§

impl VectorOperations<f64> for Vec<f64>

source§

impl VectorOperations<Complex<f32>> for Vec<Complex32>

source§

impl VectorOperations<Complex<f64>> for Vec<Complex64>

Implementors§