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