DiagAPI

Trait DiagAPI 

Source
pub trait DiagAPI<Inp> {
    type Out;

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

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

Required Associated Types§

Required Methods§

Source

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

Provided Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<R, T, B, D> DiagAPI<()> for (&TensorBase<Storage<R, T, B>, D>, isize)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Clone + Default, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, [usize; 1]>,

Source§

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

Source§

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

Implementors§

Source§

impl<R, T, B, D> DiagAPI<()> for &TensorBase<Storage<R, T, B>, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Clone + Default, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, [usize; 1]>,