TensorPowAPI

Trait TensorPowAPI 

Source
pub trait TensorPowAPI<TRB> {
    type Output;

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

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

Required Associated Types§

Required Methods§

Source

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

Provided Methods§

Source

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

Implementors§

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorPowAPI<&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: DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut> + DeviceCreationAnyAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<TA, DA, TB, DB, B> TensorPowAPI<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: DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut> + DeviceCreationAnyAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>,

Source§

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

Source§

impl<TA, DA, TB, DB, B, R> TensorPowAPI<&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: DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut> + DeviceCreationAnyAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>,

Source§

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

Source§

impl<TA, DA, TB, DB, B, R> TensorPowAPI<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: DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut> + DeviceCreationAnyAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>,

Source§

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

Source§

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

Source§

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