Tensor Layout.Swap Axes Method
Returns a new layout that has the strides along the specified axes swapped.
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.1
C#
A new layout with the strides at axis1 and axis2 swapped.
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.1
public TensorLayout SwapAxes(
int axis1,
int axis2
)
Parameters
Return Value
TensorLayoutA new layout with the strides at axis1 and axis2 swapped.