แก้ไข

แชร์ผ่าน


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.

public:
generic <typename T>
 static System::Numerics::Vector<T> CreateSequence(T start, T step);
public static System.Numerics.Vector<T> CreateSequence<T> (T start, T step);
static member CreateSequence : 'T * 'T -> System.Numerics.Vector<'T>
Public Function CreateSequence(Of T) (start As T, step As T) As Vector(Of T)

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