Tensor<T>.SwapAxes Method

Definition

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

Overload List

SwapAxes(Index, Index) Interchanges two axes of the tensor.
SwapAxes(Int32, Int32) Interchanges two axes of the tensor.

SwapAxes(Index, Index)

Interchanges two axes of the tensor.
C#
public Tensor<T> SwapAxes(
	Index axis1,
	Index axis2
)

Parameters

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

Return Value

Tensor<T>
A view of the tensor with axes axis1 and axis2 swapped.

SwapAxes(Int32, Int32)

Interchanges two axes of the tensor.
C#
public abstract Tensor<T> SwapAxes(
	int axis1,
	int axis2
)

Parameters

axis1  Int32
The zero-based index of the first axis.
axis2  Int32
The zero-based index of the second axis.

Return Value

Tensor<T>
A view of the tensor with axes axis1 and axis2 swapped.

See Also