pub trait Map2Alpha {
const OP: &'static str;
// Required method
fn f<T: WithDType>(
&self,
v1: &[T],
l1: &Layout,
v2: &[T],
l2: &Layout,
s: Option<f64>,
) -> Result<Vec<T>>;
// Provided method
fn map(
&self,
v1: &CpuStorage,
l1: &Layout,
v2: &CpuStorage,
l2: &Layout,
s: Option<f64>,
) -> Result<CpuStorage> { ... }
}
Required Associated Constants§
Required Methods§
fn f<T: WithDType>( &self, v1: &[T], l1: &Layout, v2: &[T], l2: &Layout, s: Option<f64>, ) -> Result<Vec<T>>
Provided Methods§
fn map( &self, v1: &CpuStorage, l1: &Layout, v2: &CpuStorage, l2: &Layout, s: Option<f64>, ) -> Result<CpuStorage>
Object Safety§
This trait is not object safe.