Vector128.WithElement<T>(Vector128<T>, Int32, T) Метод

Определение

Создает новый Vector128<T> с элементом по указанному индексу, для которого задано указанное значение, а остальные элементы получают то же значение, что и в данном векторе.

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

Параметры типа

T

Тип входного вектора.

Параметры

vector
Vector128<T>

Вектор, из которого нужно получить оставшиеся элементы.

index
Int32

Задаваемый индекс элемента.

value
T

Значение, которое необходимо присвоить элементу.

Возвращаемое значение

Объект Vector128<T> со значением элемента по индексу index, равному value, а остальные элементы получают то же значение, что и в vector.

Исключения

Тип vector (T) не поддерживается.

index меньше нуля или больше числа элементов.

Применяется к