Skip to main content

ElementwiseUnary

Trait ElementwiseUnary 

Source
pub trait ElementwiseUnary<A, T>: PlatformInstance
where A: Access<T>, T: Float,
{ type Op: ReadOp<Self, T>; // Required methods 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> where T: Real; }

Required Associated Types§

Source

type Op: ReadOp<Self, T>

Required Methods§

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>
where T: Real,

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: Float> ElementwiseUnary<A, T> for Platform

Source§

type Op = Unary<A, T, T>

Source§

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

Source§

type Op = Unary<A, T, T>