pub trait NDArrayUnary: NDArray + Sized {
    type Output: Access<Self::DType>;

    // Required methods
    fn abs(
        self
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn exp(
        self
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn ln(
        self
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn round(
        self
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
}
Expand description

Unary array operations

Required Associated Types§

source

type Output: Access<Self::DType>

The return type of a unary operation.

Required Methods§

source

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

Construct an absolute value operation.

source

fn exp(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>

Construct an exponentiation operation.

source

fn ln(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>

Construct a natural logarithm operation.

source

fn round( self ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>

Construct an integer rounding operation.

Object Safety§

This trait is not object safe.

Implementors§