pub trait WithShape<D, C> {
    // Required method
    fn with(device: D, array: C) -> Self;
}

Required Methods§

source

fn with(device: D, array: C) -> Self

Implementors§

source§

impl<'a, T, D, C, const B: usize, const A: usize> WithShape<&'a D, C> for Matrix<'a, T, D, Dim2<B, A>>where D: Device, Buffer<'a, T, D, Dim2<B, A>>: WithShape<&'a D, C>,

source§

impl<'a, T, D, S> WithShape<&'a D, ()> for Buffer<'a, T, D, S>where S: Shape, D: Alloc<'a, T, S>,

source§

impl<'a, T, D, const B: usize, const A: usize> WithShape<&'a D, &[[T; A]; B]> for Buffer<'a, T, D, Dim2<B, A>>where T: Number, D: Alloc<'a, T, Dim2<B, A>>,

source§

impl<'a, T, D, const B: usize, const A: usize> WithShape<&'a D, [[T; A]; B]> for Buffer<'a, T, D, Dim2<B, A>>where T: Number, D: Alloc<'a, T, Dim2<B, A>>,

source§

impl<'a, T, D, const N: usize> WithShape<&'a D, &[T; N]> for Buffer<'a, T, D, Dim1<N>>where T: Number, D: Alloc<'a, T, Dim1<N>>,

source§

impl<'a, T, D, const N: usize> WithShape<&'a D, [T; N]> for Buffer<'a, T, D, Dim1<N>>where T: Number, D: Alloc<'a, T, Dim1<N>>,