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

Definizione

Crea un nuovo Vector256<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::Vector256<T> WithElement(System::Runtime::Intrinsics::Vector256<T> vector, int index, T value);
public:
generic <typename T>
[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;
public static System.Runtime.Intrinsics.Vector256<T> WithElement<T> (this System.Runtime.Intrinsics.Vector256<T> vector, int index, T value);
static member WithElement : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * int * 'T -> System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> (requires 'T : struct)
static member WithElement : System.Runtime.Intrinsics.Vector256<'T> * int * 'T -> System.Runtime.Intrinsics.Vector256<'T>
<Extension()>
Public Function WithElement(Of T As Structure) (vector As Vector256(Of T), index As Integer, value As T) As Vector256(Of T)
<Extension()>
Public Function WithElement(Of T) (vector As Vector256(Of T), index As Integer, value As T) As Vector256(Of T)

Parametri di tipo

T

Tipo del vettore di input.

Parametri

vector
Vector256<T>

Vettore da cui ottenere gli elementi rimanenti.

index
Int32

Indice dell'elemento da impostare.

value
T

Valore su cui impostare l'elemento.

Restituisce

Vettore 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