ListVector<T>.GetSpan Method

Returns a span over the elements of the list at the specified index.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
C#
public Span<T> GetSpan(
	int index
)

Parameters

index  Int32
The zero-based index of the list.

Return Value

Span<T>
A span over the list's elements.

Remarks

This method allows efficient in-place modification of list elements when the vector's attributes permit it (MutableValues).

See Also