Skip to main content

VectorOperations

Trait VectorOperations 

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

impl VectorOperations<f32> for Vec<f32>

Source§

impl VectorOperations<f64> for Vec<f64>

Implementors§