Vector128.WithElement<T>(Vector128<T>, Int32, T) Metodo

Definizione

Crea un nuovo Vector128<T> con l'elemento in corrispondenza dell'indice specificato impostato sul valore specificato e gli elementi rimanenti impostati sullo stesso valore di quello nel vettore specificato.

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

Parametri di tipo

T

Tipo del vettore di input.

Parametri

vector
Vector128<T>

Vettore da cui ottenere gli elementi rimanenti.

index
Int32

Indice dell'elemento da impostare.

value
T

Valore su cui impostare l'elemento.

Restituisce

Vector128<T>

Vector128<T> con il valore dell'elemento in corrispondenza di index impostato su value e gli elementi rimanenti impostati sullo stesso valore di quello in vector.

Eccezioni

Il tipo vector (T) non è supportato.

index era minore di zero o maggiore del numero di elementi.

Si applica a