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>

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Op = Unary<A, T, T>

source§

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

§

type Op = Unary<A, T, T>