Read Only Span 2D<T>.Diagonal Method
Returns an array slice that corresponds to a column in the array.
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
An array slice that starts at the first element in the diagonal.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public ReadOnlySpanSlice<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
ReadOnlySpanSlice<T>An array slice that starts at the first element in the diagonal.