Struct parenchyma::Shape
[−]
[src]
pub struct Shape { pub capacity: usize, pub dims: Vec<usize>, // some fields omitted }
Describes the shape of a tensor.
Fields
capacity: usize
The number of components.
Example
// The following tensor has 9 components
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
dims: Vec<usize>
The dimensions of the tensor.
Methods
impl Shape
[src]
Trait Implementations
impl Clone for Shape
[src]
fn clone(&self) -> Shape
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