Span Extensions.With Stride Method
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
With | Returns a slice over a read-only span with the specified stride. |
With | Returns a slice over a span with the specified stride. |
WithStride<T>(ReadOnlySpan<T>, Int32)
Returns a slice over a read-only span with the specified stride.
public static ReadOnlySpanSlice<T> WithStride<T>(
this ReadOnlySpan<T> span,
int stride
)
Parameters
- span ReadOnlySpan<T>
- The source span.
- stride Int32
- The distance between successive elements in the span.
Type Parameters
- T
- The type of the elements of the span.
Return Value
ReadOnlySpanSlice<T>A read-only slice over the elements of span with stride stride.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ReadOnlySpan<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).WithStride<T>(Span<T>, Int32)
Returns a slice over a span with the specified stride.
public static SpanSlice<T> WithStride<T>(
this Span<T> span,
int stride
)
Parameters
Type Parameters
- T
- The type of the elements of the span.
Return Value
SpanSlice<T>A slice over the elements of span with stride stride.