Trait ElementwiseUnary

Source
pub trait ElementwiseUnary<A, T>: PlatformInstance
where A: Access<T>, T: CType,
{ type Op: ReadOp<Self, T>; // Required methods fn abs(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>; fn exp(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>; fn ln(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>; fn round(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>; }

Required Associated Types§

Source

type Op: ReadOp<Self, T>

Required Methods§

Source

fn abs(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn exp(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn ln(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn round(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>

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§

Source§

impl<A: Access<T>, T: CType> ElementwiseUnary<A, T> for Platform

Source§

type Op = Unary<A, T, T>

Source§

impl<A: Access<T>, T: CType> ElementwiseUnary<A, T> for Host

Source§

type Op = Unary<A, T, T>