pub trait DeviceMatMulAPI<TA, TB, TC, DA, DB, DC>where
DA: DimAPI,
DB: DimAPI,
DC: DimAPI,
TA: Mul<TB, Output = TC>,
TC: Mul<TC, Output = TC> + Add<TC, Output = TC>,
Self: DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<TC>,{
// Required method
fn matmul(
&self,
c: &mut <Self as DeviceRawAPI<TC>>::Raw,
lc: &Layout<DC>,
a: &<Self as DeviceRawAPI<TA>>::Raw,
la: &Layout<DA>,
b: &<Self as DeviceRawAPI<TB>>::Raw,
lb: &Layout<DB>,
alpha: TC,
beta: TC,
) -> Result<()>;
}Required Methods§
fn matmul( &self, c: &mut <Self as DeviceRawAPI<TC>>::Raw, lc: &Layout<DC>, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<DA>, b: &<Self as DeviceRawAPI<TB>>::Raw, lb: &Layout<DB>, alpha: TC, beta: TC, ) -> Result<()>
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.