Struct parenchyma::Shape [] [src]

pub struct Shape {
    pub capacity: usize,
    pub dims: Vec<usize>,
    // some fields omitted
}

Describes the shape of a tensor.

Fields

The number of components.

Example

// The following tensor has 9 components

[[1, 2, 3], [4, 5, 6], [7, 8, 9]]

The dimensions of the tensor.

Methods

impl Shape
[src]

Returns the capacity

Trait Implementations

impl Clone for Shape
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Shape
[src]

Formats the value using the given formatter.

impl From<usize> for Shape
[src]

Performs the conversion.

impl From<[usize; 1]> for Shape
[src]

Performs the conversion.

impl From<[usize; 2]> for Shape
[src]

Performs the conversion.

impl From<[usize; 3]> for Shape
[src]

Performs the conversion.