Struct ndarray::Shape [] [src]

pub struct Shape<D> {
    // some fields omitted
}

A contiguous array shape of n dimensions.

Either c- or f- memory ordered (c a.k.a row major is the default).

Trait Implementations

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

fn from(d: D) -> Self

Performs the conversion.

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

type Dim = D

fn f(self) -> Self

fn set_f(self, is_f: bool) -> Self

fn strides(self, st: D) -> StrideShape<D>

impl<D: Debug> Debug for Shape<D>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<D: Clone> Clone for Shape<D>
[src]

fn clone(&self) -> Shape<D>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<D: Copy> Copy for Shape<D>
[src]