TensorLayout.SwapAxes 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#
public TensorLayout SwapAxes(
	int axis1,
	int axis2
)

Parameters

axis1  Int32
The index of the first axis.
axis2  Int32
The index of the second axis.

Return Value

TensorLayout
A new layout with the strides at axis1 and axis2 swapped.

See Also