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.
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.