NativeArray2D<T>.Diagonal Method

Returns an array slice that corresponds to a column in the array.

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public NativeArraySlice<T> Diagonal(
	int index
)

Parameters

index  Int32
The distance of the diagonal from the main diagonal. Positive values are above the main diagonal. Negative values are below.

Return Value

NativeArraySlice<T>
An array slice that starts at the first element in the diagonal.

See Also