Trait candle_core::NdArray

source ·
pub trait NdArray {
    // Required methods
    fn shape(&self) -> Result<Shape>;
    fn to_cpu_storage(&self) -> CpuStorage;
}

Required Methods§

Implementations on Foreign Types§

source§

impl<S: NdArray> NdArray for Vec<S>

source§

impl<S: WithDType> NdArray for &[S]

source§

impl<S: WithDType, const N1: usize, const N2: usize, const N3: usize> NdArray for &[[[S; N3]; N2]; N1]

source§

impl<S: WithDType, const N1: usize, const N2: usize, const N3: usize, const N4: usize> NdArray for &[[[[S; N4]; N3]; N2]; N1]

source§

impl<S: WithDType, const N: usize> NdArray for &[S; N]

source§

impl<S: WithDType, const N: usize, const M: usize> NdArray for &[[S; N]; M]

Implementors§

source§

impl<S: WithDType> NdArray for S