Iamax

Trait Iamax 

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

Finds the index of the element with maximum absolute value in a vector.

Complex vectors maximize the value |Re(x_k)| + |Im(x_k)|.

The first index with a maximum is returned.

Required Methods§

Source

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

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

Source§

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

Source§

impl Iamax for f64

Source§

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

Source§

impl Iamax for Complex32

Source§

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

Source§

impl Iamax for Complex64

Source§

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

Implementors§