Trait tract_core::internal::tract_ndarray::prelude::ShapeBuilder[][src]

pub trait ShapeBuilder {
    type Dim: Dimension;
    type Strides;
    pub fn into_shape(self) -> Shape<Self::Dim>;
pub fn f(self) -> Shape<Self::Dim>;
pub fn set_f(self, is_f: bool) -> Shape<Self::Dim>;
pub fn strides(self, strides: Self::Strides) -> StrideShape<Self::Dim>; }

A trait for Shape and D where D: Dimension that allows customizing the memory layout (strides) of an array shape.

This trait is used together with array constructor methods like Array::from_shape_vec.

Associated Types

Loading content...

Required methods

pub fn into_shape(self) -> Shape<Self::Dim>[src]

pub fn f(self) -> Shape<Self::Dim>[src]

pub fn set_f(self, is_f: bool) -> Shape<Self::Dim>[src]

pub fn strides(self, strides: Self::Strides) -> StrideShape<Self::Dim>[src]

Loading content...

Implementors

impl<D> ShapeBuilder for Shape<D> where
    D: Dimension
[src]

type Dim = D

type Strides = D

impl<T> ShapeBuilder for T where
    T: IntoDimension
[src]

type Dim = <T as IntoDimension>::Dim

type Strides = T

Loading content...