Trait rust_blas::vector::ops::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

Object Safety§

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§