VStackAPI

Trait VStackAPI 

Source
pub trait VStackAPI<Inp> {
    type Out;

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

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

Required Associated Types§

Required Methods§

Source

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

Provided Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<R, T, B, D, const N: usize> VStackAPI<()> 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 vstack_f( self, ) -> Result<<[&TensorBase<Storage<R, T, B>, D>; N] as VStackAPI<()>>::Out, Error>

Source§

impl<R, T, B, D, const N: usize> VStackAPI<()> 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 vstack_f( self, ) -> Result<<[TensorBase<Storage<R, T, B>, D>; N] as VStackAPI<()>>::Out, Error>

Implementors§

Source§

impl<R, T, B, D> VStackAPI<()> 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> VStackAPI<()> 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> VStackAPI<()> 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> VStackAPI<()> 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>>,