TensorEqualAPI

Trait TensorEqualAPI 

Source
pub trait TensorEqualAPI<TRB> {
    type Output;

    // Required method
    fn equal_f(self, b: TRB) -> Result<Self::Output, Error>;

    // Provided method
    fn equal(self, b: TRB) -> Self::Output
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

Source

fn equal_f(self, b: TRB) -> Result<Self::Output, Error>

Provided Methods§

Source

fn equal(self, b: TRB) -> Self::Output
where Self: Sized,

Implementors§

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorEqualAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorBase<Storage<RA, TA, B>, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, <DA as DimMaxAPI<DB>>::Max: DimAPI, B: DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut> + DeviceCreationAnyAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

impl<RA, TA, DA, TB, B> TensorEqualAPI<TB> for &TensorBase<Storage<RA, TA, B>, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceEqualAPI<TA, TB, DA> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DeviceEqualAPI<TA, TB, DA>>::TOut> + DeviceCreationAnyAPI<<B as DeviceEqualAPI<TA, TB, DA>>::TOut>, TB: Num,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, DA>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, DA>>::TOut, B>, DA>

Source§

impl<RB, TA, DB, TB, B> TensorEqualAPI<&TensorBase<Storage<RB, TB, B>, DB>> for TA
where RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DB: DimAPI, B: DeviceEqualAPI<TA, TB, DB> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DeviceEqualAPI<TA, TB, DB>>::TOut> + DeviceCreationAnyAPI<<B as DeviceEqualAPI<TA, TB, DB>>::TOut>, TA: Num,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, DB>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, DB>>::TOut, B>, DB>

Source§

impl<TA, DA, TB, B> TensorEqualAPI<TB> for TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TA>>::Raw>, TA, B>, DA>
where DA: DimAPI, B: DeviceEqualAPI<TA, TB, DA> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DeviceEqualAPI<TA, TB, DA>>::TOut> + DeviceCreationAnyAPI<<B as DeviceEqualAPI<TA, TB, DA>>::TOut>, TB: Num,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, DA>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, DA>>::TOut, B>, DA>

Source§

impl<TA, DA, TB, DB, B> TensorEqualAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TA>>::Raw>, TA, B>, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, <DA as DimMaxAPI<DB>>::Max: DimAPI, B: DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut> + DeviceCreationAnyAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

impl<TA, DA, TB, DB, B, R> TensorEqualAPI<&TensorBase<Storage<R, TB, B>, DB>> for TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TA>>::Raw>, TA, B>, DA>
where R: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, <DA as DimMaxAPI<DB>>::Max: DimAPI, B: DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut> + DeviceCreationAnyAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

impl<TA, DA, TB, DB, B, R> TensorEqualAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorBase<Storage<R, TA, B>, DA>
where R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, <DA as DimMaxAPI<DB>>::Max: DimAPI, B: DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut> + DeviceCreationAnyAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

impl<TA, DB, TB, B> TensorEqualAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for TA
where DB: DimAPI, B: DeviceEqualAPI<TA, TB, DB> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DeviceEqualAPI<TA, TB, DB>>::TOut> + DeviceCreationAnyAPI<<B as DeviceEqualAPI<TA, TB, DB>>::TOut>, TA: Num,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, DB>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, DB>>::TOut, B>, DB>