Method atLeast2D
val atLeast2D: ITensor -> ITensor
Pads the tensor from the left with size-one dimensions until it has at least two dimensions.
Declaration
val atLeast2D: a:ITensor -> ITensor
Parameters
Type | Name | Description |
---|---|---|
ITensor | a | The tensor to operate on. |
Returns
Type | Description |
---|---|
ITensor | A tensor with at least two dimensions. |