Struct ndarray::Shape [] [src]

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

A contiguous array shape of n dimensions.

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

Methods

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

[src]

Return the size of the shape in number of elements

Trait Implementations

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

[src]

Create a Shape from dimension, using the default memory layout.

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

[src]

[src]

[src]

[src]

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.