EyeAPI

Trait EyeAPI 

Source
pub trait EyeAPI<Inp> {
    type Out;

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

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

Required Associated Types§

Required Methods§

Source

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

Provided Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<T> EyeAPI<T> for (usize, usize, isize)
where T: Num + Clone + Send + Sync,

Source§

impl<T> EyeAPI<T> for (usize, usize, isize, FlagOrder)
where T: Num + Clone + Send + Sync,

Source§

impl<T> EyeAPI<T> for usize
where T: Num + Clone + Send + Sync,

Source§

impl<T, B> EyeAPI<(T, B)> for (usize, &B)
where T: Num, B: DeviceAPI<T> + DeviceCreationNumAPI<T> + OpAssignAPI<T, Ix1>,

Source§

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

Source§

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

Source§

impl<T, B> EyeAPI<(T, B)> for (usize, usize, isize, FlagOrder, &B)
where T: Num, B: DeviceAPI<T> + DeviceCreationNumAPI<T> + OpAssignAPI<T, Ix1>,

Source§

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

Source§

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

Source§

impl<T, B> EyeAPI<(T, B)> for (usize, usize, isize, &B)
where T: Num, B: DeviceAPI<T> + DeviceCreationNumAPI<T> + OpAssignAPI<T, Ix1>,

Source§

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

Source§

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

Implementors§