diffusion_rs_common::core::cpu_backend

Trait Map3

source
pub trait Map3 {
    const OP: &'static str;

    // Required method
    fn f<T: WithDType>(
        &self,
        v1: &[T],
        l1: &Layout,
        v2: &[T],
        l2: &Layout,
        v3: &mut [T],
        l3: &Layout,
        s: Option<f64>,
    ) -> Result<()>;

    // Provided method
    fn map(
        &self,
        v1: &CpuStorage,
        l1: &Layout,
        v2: &CpuStorage,
        l2: &Layout,
        v3: &mut CpuStorage,
        l3: &Layout,
        s: Option<f64>,
    ) -> Result<()> { ... }
}

Required Associated Constants§

source

const OP: &'static str

Required Methods§

source

fn f<T: WithDType>( &self, v1: &[T], l1: &Layout, v2: &[T], l2: &Layout, v3: &mut [T], l3: &Layout, s: Option<f64>, ) -> Result<()>

Provided Methods§

source

fn map( &self, v1: &CpuStorage, l1: &Layout, v2: &CpuStorage, l2: &Layout, v3: &mut CpuStorage, l3: &Layout, s: Option<f64>, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§