List Vector<T>.Get Span 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#
A span over the list's elements.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
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).