Method swapDim
val swapDim: int -> int -> ITensor -> ITensor
Swaps the specified dimensions of the tensor.
Declaration
val swapDim: ax1:int -> ax2:int -> a:ITensor -> ITensor
Parameters
| Type | Name | Description |
|---|---|---|
| int | ax1 | The dimension to swap. |
| int | ax2 | The dimension to swap with. |
| ITensor | a | The tensor to operate on. |
Returns
| Type | Description |
|---|---|
| ITensor | The tensor with the dimensions swapped. |