Tensor<T>.Swap Axes Method
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Overload List
Swap | Interchanges two axes of the tensor. |
Swap | Interchanges two axes of the tensor. |
SwapAxes(Index, Index)
Interchanges two axes of the tensor.
public Tensor<T> SwapAxes(
Index axis1,
Index axis2
)
Parameters
Return Value
Tensor<T>A view of the tensor with axes axis1 and axis2 swapped.
SwapAxes(Int32, Int32)
Interchanges two axes of the tensor.
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.