Skip to main content

EntrywiseAbs

Trait EntrywiseAbs 

Source
pub trait EntrywiseAbs {
    type Output;

    // Required method
    fn entrywise_abs(self) -> Self::Output;
}
Expand description

Replaces every entry of a value, such as every element of a vector, by its absolute value.

This is distinct from Abs, which for a vector would be its Euclidean length.

Required Associated Types§

Required Methods§

Source

fn entrywise_abs(self) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§