TensorShape.SwapAxes Method

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3

Overload List

SwapAxes(Index, Index) Returns a new tensor shape that has the dimensions along the specified axes swapped.
SwapAxes(Int32, Int32) Returns a new tensor shape that has the dimensions along the specified axes swapped.

SwapAxes(Index, Index)

Returns a new tensor shape that has the dimensions along the specified axes swapped.
C#
public TensorShape SwapAxes(
	Index axis1,
	Index axis2
)

Parameters

axis1  Index
The first axis.
axis2  Index
The second axis.

Return Value

TensorShape
A tensor shape with the same dimensions, except along the axes axis1 and axis2, which are swapped.

SwapAxes(Int32, Int32)

Returns a new tensor shape that has the dimensions along the specified axes swapped.
C#
public TensorShape SwapAxes(
	int axis1,
	int axis2
)

Parameters

axis1  Int32
The first axis.
axis2  Int32
The second axis.

Return Value

TensorShape
A tensor shape with the same dimensions, except along the axes axis1 and axis2, which are swapped.

See Also