Trait ElementwiseScalar

Source
pub trait ElementwiseScalar<A, T>: PlatformInstance
where A: Access<T>, T: CType,
{ type Op: ReadOp<Self, T>; // Required methods fn add_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>; fn div_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>; fn log_scalar( self, arg: A, base: T, ) -> Result<AccessOp<Self::Op, Self>, Error>; fn mul_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>; fn pow_scalar( self, arg: A, exp: T, ) -> Result<AccessOp<Self::Op, Self>, Error>; fn rem_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>; fn sub_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>; }

Required Associated Types§

Source

type Op: ReadOp<Self, T>

Required Methods§

Source

fn add_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn div_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn log_scalar(self, arg: A, base: T) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn mul_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>

Source

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

Source

fn rem_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn sub_scalar( self, left: A, right: T, ) -> 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> ElementwiseScalar<A, T> for Platform

Source§

type Op = Scalar<A, T, T>

Source§

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

Source§

type Op = Scalar<A, T, T>