pub trait NDArray: Send + Sync {
type DType: CType;
type Platform: PlatformInstance;
// Required method
fn shape(&self) -> &[usize];
// Provided methods
fn ndim(&self) -> usize { ... }
fn size(&self) -> usize { ... }
}
Expand description
An n-dimensional array
Required Associated Types§
Sourcetype Platform: PlatformInstance
type Platform: PlatformInstance
The platform used to construct operations on this array.