Trait ha_ndarray::NDArrayUnary
source · 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§
Required Methods§
sourcefn abs(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn abs(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct an absolute value operation.
sourcefn exp(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn exp(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct an exponentiation operation.
Object Safety§
This trait is not object safe.