Skip to main content

TensorAddAPI

Trait TensorAddAPI 

Source
pub trait TensorAddAPI<TrB> {
    type Output;

    // Required method
    fn add_f(a: Self, b: TrB) -> Result<Self::Output, Error>;

    // Provided method
    fn add(a: Self, b: TrB) -> Self::Output
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

Source

fn add_f(a: Self, b: TrB) -> Result<Self::Output, Error>

Provided Methods§

Source

fn add(a: Self, b: TrB) -> Self::Output
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, DA, DB, DC, B> TensorAddAPI<TensorBase<Storage<DataCow<'_, <B as DeviceRawAPI<T>>::Raw>, T, B>, DB>> for TensorBase<Storage<DataCow<'_, <B as DeviceRawAPI<T>>::Raw>, T, B>, DA>
where DA: DimAPI + DimMaxAPI<DB, Max = DC> + DimIntoAPI<DC>, DB: DimAPI + DimMaxAPI<DA, Max = DC> + DimIntoAPI<DC>, DC: DimAPI + DimIntoAPI<DA> + DimIntoAPI<DB>, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAddAPI<T, T, T, DC> + OpLConsumeAddAPI<T, T, DA> + OpRConsumeAddAPI<T, T, DB> + OpAssignAPI<T, DA> + OpAssignAPI<T, DB>, T: Add<Output = T> + Clone, <B as DeviceRawAPI<T>>::Raw: Clone,