Tensor<T>.GetLength Method

Definition

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

Overload List

GetLength(Index) Gets the length of the tensor along the specified axis.
GetLength(Int32) Gets the length of the tensor along the specified axis.

GetLength(Index)

Gets the length of the tensor along the specified axis.
C#
public int GetLength(
	Index axis
)

Parameters

axis  Index
The zero based index of the axis.

Return Value

Int32
The length of the tensor in the dimension specified by axis.

GetLength(Int32)

Gets the length of the tensor along the specified axis.
C#
public int GetLength(
	int axis
)

Parameters

axis  Int32
The zero based index of the axis.

Return Value

Int32
The length of the tensor in the dimension specified by axis.

See Also