Tensor<T>.RemoveSingletonAxis Method

Definition

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

Overload List

RemoveSingletonAxis(Index) Returns a tensor with the same values but with the specified unit dimension removed.
RemoveSingletonAxis(Int32) Returns a tensor with the same values but with the specified unit dimension removed.

RemoveSingletonAxis(Index)

Returns a tensor with the same values but with the specified unit dimension removed.
C#
public Tensor<T> RemoveSingletonAxis(
	Index axis
)

Parameters

axis  Index
The dimension to remove.

Return Value

Tensor<T>

Exceptions

InvalidOperationException

The size of the tensor along dimension axis is not one.

RemoveSingletonAxis(Int32)

Returns a tensor with the same values but with the specified unit dimension removed.
C#
public Tensor<T> RemoveSingletonAxis(
	int axis
)

Parameters

axis  Int32
The dimension to remove.

Return Value

Tensor<T>

Exceptions

InvalidOperationException

The size of the tensor along dimension axis is not one.

See Also