Method insertAxis
val insertAxis: int -> ITensor -> ITensor
Insert a dimension of size one before the specifed dimension.
Declaration
val insertAxis: ax:int -> a:ITensor -> ITensor
Parameters
Type | Name | Description |
---|---|---|
int | ax | The dimension to insert before. |
ITensor | a | The tensor to operate on. |
Returns
Type | Description |
---|---|
ITensor | The resulting tensor. |