Span Slice<T>.With Length Method
Returns a span slice with the same span and stride but with the specified length.
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
C#
A span slice with the specified length.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
public SpanSlice<T> WithLength(
int length
)Parameters
- length Int32
- The number of elements in the new slice.
Return Value
SpanSlice<T>A span slice with the specified length.