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>

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Op = Scalar<A, T, T>

source§

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

§

type Op = Scalar<A, T, T>