Skip to main content

NDArrayAbs

Trait NDArrayAbs 

Source
pub trait NDArrayAbs: NDArray + Sized {
    type Output: Access<<Self::DType as Number>::Abs>;

    // Required method
    fn abs(
        self,
    ) -> Result<Array<<Self::DType as Number>::Abs, Self::Output, Self::Platform>, Error>;
}
Expand description

Array absolute value

Required Associated Types§

Source

type Output: Access<<Self::DType as Number>::Abs>

The return type of the absolute value operation

Required Methods§

Source

fn abs( self, ) -> Result<Array<<Self::DType as Number>::Abs, Self::Output, Self::Platform>, Error>

Construct an absolute value operation.

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.

Implementors§