Trait dfdx::shapes::Array

source ·
pub trait Array<T>: IntoIterator<Item = T> {
    type Dim: Dim;

    // Required method
    fn dim(&self) -> Self::Dim;
}
Expand description

Represents either [T; N] or Vec<T>

Required Associated Types§

Required Methods§

source

fn dim(&self) -> Self::Dim

Implementations on Foreign Types§

source§

impl<T> Array<T> for Vec<T>

§

type Dim = usize

source§

fn dim(&self) -> Self::Dim

source§

impl<T, const N: usize> Array<T> for [T; N]

§

type Dim = Const<N>

source§

fn dim(&self) -> Self::Dim

Implementors§