Trait Nrm2

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

Computes the L2 norm (Euclidian length) of a vector.

Required Methods§

Source

fn nrm2<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 Nrm2 for f32

Source§

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

Source§

impl Nrm2 for f64

Source§

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

Source§

impl Nrm2 for Complex32

Source§

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

Source§

impl Nrm2 for Complex64

Source§

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

Implementors§