ZerosLikeAPI

Trait ZerosLikeAPI 

Source
pub trait ZerosLikeAPI<Inp> {
    type Out;

    // Required method
    fn zeros_like_f(self) -> Result<Self::Out, Error>;

    // Provided method
    fn zeros_like(self) -> Self::Out
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

Source

fn zeros_like_f(self) -> Result<Self::Out, Error>

Provided Methods§

Source

fn zeros_like(self) -> Self::Out
where Self: Sized,

Implementations on Foreign Types§

Source§

impl<R, T, B, D> ZerosLikeAPI<()> for (&TensorBase<Storage<R, T, B>, D>, TensorIterOrder)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Num, D: DimAPI, B: DeviceAPI<T> + DeviceCreationNumAPI<T>,

Source§

impl<R, T, B, D> ZerosLikeAPI<()> for (&TensorBase<Storage<R, T, B>, D>, TensorIterOrder, &B)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Num, D: DimAPI, B: DeviceAPI<T> + DeviceCreationNumAPI<T>,

Source§

impl<R, T, B, D> ZerosLikeAPI<()> for (&TensorBase<Storage<R, T, B>, D>, &B)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Num, D: DimAPI, B: DeviceAPI<T> + DeviceCreationNumAPI<T>,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>

Source§

fn zeros_like_f( self, ) -> Result<<(&TensorBase<Storage<R, T, B>, D>, &B) as ZerosLikeAPI<()>>::Out, Error>

Implementors§

Source§

impl<R, T, B, D> ZerosLikeAPI<()> for &TensorBase<Storage<R, T, B>, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Num, D: DimAPI, B: DeviceAPI<T> + DeviceCreationNumAPI<T>,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>