pub trait NDArrayUnary: NDArray + Sized {
    // Provided methods
    fn abs(
        self
    ) -> Result<ArrayOp<ArrayUnary<Self::DType, Self::DType, Self>>, Error> { ... }
    fn exp(
        self
    ) -> Result<ArrayOp<ArrayUnary<Self::DType, Self::DType, Self>>, Error> { ... }
    fn ln(
        self
    ) -> Result<ArrayOp<ArrayUnary<Self::DType, Self::DType, Self>>, Error> { ... }
    fn not(self) -> Result<ArrayOp<ArrayUnary<Self::DType, u8, Self>>, Error> { ... }
    fn round(
        self
    ) -> Result<ArrayOp<ArrayUnary<Self::DType, Self::DType, Self>>, Error> { ... }
}
Expand description

Unary array operations

Provided Methods§

source

fn abs( self ) -> Result<ArrayOp<ArrayUnary<Self::DType, Self::DType, Self>>, Error>

Construct an absolute value operation.

source

fn exp( self ) -> Result<ArrayOp<ArrayUnary<Self::DType, Self::DType, Self>>, Error>

Construct an exponentiation operation.

source

fn ln( self ) -> Result<ArrayOp<ArrayUnary<Self::DType, Self::DType, Self>>, Error>

Construct a natural logarithm operation.

source

fn not(self) -> Result<ArrayOp<ArrayUnary<Self::DType, u8, Self>>, Error>

Construct a boolean not operation.

source

fn round( self ) -> Result<ArrayOp<ArrayUnary<Self::DType, Self::DType, Self>>, Error>

Construct an integer rounding operation.

Object Safety§

This trait is not object safe.

Implementors§