Tensor<T>.Remove Singleton Axis 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
Remove | Returns a tensor with the same values but with the specified unit dimension removed. |
Remove | 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.
public Tensor<T> RemoveSingletonAxis(
Index axis
)
Parameters
- axis Index
- The dimension to remove.
Return Value
Tensor<T>Exceptions
Invalid | 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.
public Tensor<T> RemoveSingletonAxis(
int axis
)
Parameters
- axis Int32
- The dimension to remove.
Return Value
Tensor<T>Exceptions
Invalid | The size of the tensor along dimension axis is not one. |