pub type Tensor2<T, A> = Tensor<T, 2, A>;Expand description
Type alias for a 2-dimensional tensor.
Aliased Type§
pub struct Tensor2<T, A> {
pub storage: TensorStorage<T, A>,
pub shape: [usize; 2],
pub strides: [usize; 2],
}Fields§
§storage: TensorStorage<T, A>The storage of the tensor.
shape: [usize; 2]The shape of the tensor.
strides: [usize; 2]The strides of the tensor data in memory.