Wrapper around the tensor
Each derivative is assigned a unique DerivativeID
An iterator over the indices for the tensor
True if the tensor is a scalar.
The operations available on a tensor.
primal points to the actual tensor
The number of dimensions in the tensor's shape. rank 0 - Scalar rank 1 - 1D array or 1D tensor rank 2 - 2D matrix or 2D tensor rank 3 - 3D tensor ... rank N - ND tensor
shape indicates the number of dimension of a tensor and the length of each dimension. If the shape of the tensor is 3x4x5 then the value of shape is Shape(3,4,5).
The total number of elements of this tensor.