candle_core

Trait 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