ZerosLikeAPI

Trait ZerosLikeAPI 

Source
pub trait ZerosLikeAPI<Inp> {
    type Out;

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

    // 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>

Provided Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<R, T, B, D> ZerosLikeAPI<()> for (&TensorAny<R, T, B, D>, TensorIterOrder)
where R: DataAPI<Data = B::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<Self::Out>

Source§

impl<R, T, B, D> ZerosLikeAPI<()> for (&TensorAny<R, T, B, D>, TensorIterOrder, &B)
where R: DataAPI<Data = B::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<Self::Out>

Source§

impl<R, T, B, D> ZerosLikeAPI<()> for (&TensorAny<R, T, B, D>, &B)
where R: DataAPI<Data = B::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<Self::Out>

Implementors§

Source§

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

Source§

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