Asum

Trait Asum 

Source
pub trait Asum: Sized {
    // Required method
    fn asum<V: ?Sized + Vector<Self>>(x: &V) -> Self;
}
Expand description

Computes the sum of the absolute values of elements in a vector.

Complex vectors use ||Re(x)||_1 + ||Im(x)||_1

Required Methods§

Source

fn asum<V: ?Sized + Vector<Self>>(x: &V) -> Self

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 Asum for f32

Source§

fn asum<V: ?Sized + Vector<Self>>(x: &V) -> f32

Source§

impl Asum for f64

Source§

fn asum<V: ?Sized + Vector<Self>>(x: &V) -> f64

Source§

impl Asum for Complex32

Source§

fn asum<V: ?Sized + Vector<Self>>(x: &V) -> Complex32

Source§

impl Asum for Complex64

Source§

fn asum<V: ?Sized + Vector<Self>>(x: &V) -> Complex64

Implementors§