Tensor Shape.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 | Returns a new tensor shape that has the dimensions along the specified axes swapped. |
Swap | 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.
public TensorShape SwapAxes(
Index axis1,
Index axis2
)
Parameters
Return Value
TensorShapeA 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.
public TensorShape SwapAxes(
int axis1,
int axis2
)
Parameters
Return Value
TensorShapeA tensor shape with the same dimensions, except along the axes axis1 and axis2, which are swapped.