TensorShape.RemoveAt Method

Definition

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

Overload List

RemoveAt(Axes) Removes the specified dimensions from the current shape.
RemoveAt(Index) Returns a new tensor shape with the specified axis removed.
RemoveAt(Int32) Returns a new tensor shape with the specified axis removed.

RemoveAt(Axes)

Removes the specified dimensions from the current shape.
C#
public TensorShape RemoveAt(
	Axes axes
)

Parameters

axes  Axes
An axis collection that specifies the dimensions to remove.

Return Value

TensorShape
A new tensor shape with the dimensions specified by axes removed.

Remarks

axes may contain negative axes values indicating that they should be counted from the end.

RemoveAt(Index)

Returns a new tensor shape with the specified axis removed.
C#
public TensorShape RemoveAt(
	Index axis
)

Parameters

axis  Index
The axis to remove.

Return Value

TensorShape
A new tensor shape that has the axis with index axis removed.

Exceptions

ArgumentOutOfRangeException

axis is less than zero or greather than or equal to the rank of the tensor shape.

RemoveAt(Int32)

Returns a new tensor shape with the specified axis removed.
C#
public TensorShape RemoveAt(
	int axis
)

Parameters

axis  Int32
The axis to remove.

Return Value

TensorShape
A new tensor shape that has the axis with index axis removed.

Exceptions

ArgumentOutOfRangeException

axis is less than zero or greather than or equal to the rank of the tensor shape.

See Also