Trait OnesAPI

Source
pub trait OnesAPI<Inp>: Sized {
    type Out;

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

    // Provided method
    fn ones(self) -> Self::Out { ... }
}

Required Associated Types§

Required Methods§

Source

fn ones_f(self) -> Result<Self::Out>

Provided Methods§

Source

fn ones(self) -> Self::Out

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, D, B, L> OnesAPI<(T, D)> for (L, &B)
where T: Num, D: DimAPI, B: DeviceAPI<T> + DeviceCreationNumAPI<T>, L: Into<Layout<D>>,

Source§

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

Source§

fn ones_f(self) -> Result<Self::Out>

Implementors§

Source§

impl<T, D, L> OnesAPI<(T, D)> for L
where T: Num + Clone, D: DimAPI, L: Into<Layout<D>>,