StackAPI

Trait StackAPI 

Source
pub trait StackAPI<Inp> {
    type Out;

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

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

Required Associated Types§

Required Methods§

Source

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

Provided Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<R, T, B, D> StackAPI<()> for (&Vec<&TensorBase<Storage<R, T, B>, D>>, i32)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Clone + Default, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, Vec<usize>>,

Source§

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

Source§

fn stack_f( self, ) -> Result<<(&Vec<&TensorBase<Storage<R, T, B>, D>>, i32) as StackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D> StackAPI<()> for (&Vec<&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, Vec<usize>>,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<(&Vec<&TensorBase<Storage<R, T, B>, D>>, usize) as StackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D> StackAPI<()> for (&Vec<TensorBase<Storage<R, T, B>, D>>, i32)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Clone + Default, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, Vec<usize>>,

Source§

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

Source§

fn stack_f( self, ) -> Result<<(&Vec<TensorBase<Storage<R, T, B>, D>>, i32) as StackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D> StackAPI<()> for (&Vec<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, Vec<usize>>,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<(&Vec<TensorBase<Storage<R, T, B>, D>>, usize) as StackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D> StackAPI<()> for (Vec<&TensorBase<Storage<R, T, B>, D>>, i32)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Clone + Default, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, Vec<usize>>,

Source§

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

Source§

fn stack_f( self, ) -> Result<<(Vec<&TensorBase<Storage<R, T, B>, D>>, i32) as StackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D> StackAPI<()> for (Vec<&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, Vec<usize>>,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<(Vec<&TensorBase<Storage<R, T, B>, D>>, usize) as StackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D> StackAPI<()> for (Vec<TensorBase<Storage<R, T, B>, D>>, i32)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Clone + Default, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, Vec<usize>>,

Source§

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

Source§

fn stack_f( self, ) -> Result<<(Vec<TensorBase<Storage<R, T, B>, D>>, i32) as StackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D> StackAPI<()> for (Vec<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, Vec<usize>>,

Source§

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

Source§

fn stack_f( self, ) -> Result<<(Vec<TensorBase<Storage<R, T, B>, D>>, isize) as StackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D> StackAPI<()> for (Vec<TensorBase<Storage<R, T, B>, D>>, usize)
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, T: Clone + Default, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, Vec<usize>>,

Source§

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

Source§

fn stack_f( self, ) -> Result<<(Vec<TensorBase<Storage<R, T, B>, D>>, usize) as StackAPI<()>>::Out, Error>

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<([&TensorBase<Storage<R, T, B>, D>; N], i32) as StackAPI<()>>::Out, Error>

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<([&TensorBase<Storage<R, T, B>, D>; N], isize) as StackAPI<()>>::Out, Error>

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<([&TensorBase<Storage<R, T, B>, D>; N], usize) as StackAPI<()>>::Out, Error>

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<([TensorBase<Storage<R, T, B>, D>; N], i32) as StackAPI<()>>::Out, Error>

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<([TensorBase<Storage<R, T, B>, D>; N], isize) as StackAPI<()>>::Out, Error>

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<([TensorBase<Storage<R, T, B>, D>; N], usize) as StackAPI<()>>::Out, Error>

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<[&TensorBase<Storage<R, T, B>, D>; N] as StackAPI<()>>::Out, Error>

Source§

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

Source§

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

Source§

fn stack_f( self, ) -> Result<<[TensorBase<Storage<R, T, B>, D>; N] as StackAPI<()>>::Out, Error>

Implementors§

Source§

impl<R, T, B, D> StackAPI<()> for &Vec<&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, Vec<usize>>,

Source§

impl<R, T, B, D> StackAPI<()> for &Vec<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, Vec<usize>>,

Source§

impl<R, T, B, D> StackAPI<()> for Vec<&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, Vec<usize>>,

Source§

impl<R, T, B, D> StackAPI<()> for Vec<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, Vec<usize>>,