Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


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

Definition

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

C#
public static System.Numerics.Vector<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 Vector<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

Termék Verziók
.NET 9, 10