Vector128.CreateSequence<T>(T, T) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates a new Vector128<T> instance where the elements begin at a specified value and which are spaced apart according to another specified value.

C#
public static System.Runtime.Intrinsics.Vector128<T> CreateSequence<T>(T start, T step);

Type Parameters

T

The type of the elements in the vector.

Parameters

start
T

The value that element 0 will be initialized to.

step
T

The value that indicates how far apart each element should be from the previous.

Returns

A new Vector128<T> instance with the first element initialized to start and each subsequent element initialized to the value of the previous element plus step.

Applies to

Product Versions
.NET 9, 10