Method relayout
val relayout: TensorLayout -> ITensor -> ITensor
Creates a tensor with the specified layout sharing its storage with the original tensor.
Declaration
val relayout: newLayout:TensorLayout -> a:ITensor -> ITensor
Parameters
| Type | Name | Description |
|---|---|---|
| TensorLayout | newLayout | The new tensor memory layout. |
| ITensor | a | The tensor to operate on. |
Returns
| Type | Description |
|---|---|
| ITensor | The resulting tensor. |