Vector256.WithElement<T>(Vector256<T>, Int32, T) Metoda

Definice

Vytvoří novou Vector256<T> s prvkem na zadaném indexu nastaveným na zadanou hodnotu a zbývající prvky nastavené na stejnou hodnotu jako v daném vektoru.

public:
generic <typename T>
 where T : value class[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector256<T> WithElement(System::Runtime::Intrinsics::Vector256<T> vector, int index, T value);
public static System.Runtime.Intrinsics.Vector256<T> WithElement<T> (this System.Runtime.Intrinsics.Vector256<T> vector, int index, T value) where T : struct;
static member WithElement : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * int * 'T -> System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function WithElement(Of T As Structure) (vector As Vector256(Of T), index As Integer, value As T) As Vector256(Of T)

Parametry typu

T

Typ vstupního vektoru.

Parametry

vector
Vector256<T>

Vektor pro získání zbývajících prvků.

index
Int32

Index elementu, který chcete nastavit.

value
T

Hodnota, na kterou chcete prvek nastavit.

Návraty

Vector256<T>

Vektor s hodnotou prvku, který je nastaven na index value a zbývající prvky nastaveny na stejnou hodnotu jako v vector.

Výjimky

Typ vector (T) není podporován.

index byl menší než nula nebo větší než počet prvků.

Platí pro