ArraySource

Trait ArraySource 

Source
pub trait ArraySource<T>: Send + Sync {
    // Required methods
    fn shape(&self) -> &[usize];
    fn read_region(
        &self,
        start: &[usize],
        shape: &[usize],
    ) -> Result<Array<T, IxDyn>>;
}
Expand description

Source for virtual array components

Required Methods§

Source

fn shape(&self) -> &[usize]

Get shape

Source

fn read_region( &self, start: &[usize], shape: &[usize], ) -> Result<Array<T, IxDyn>>

Read a region

Implementors§