Vector128.WithElement<T>(Vector128<T>, Int32, T) 메서드
정의
지정된 인덱스의 요소는 지정된 값으로 설정하고 나머지 요소는 지정된 벡터의 요소와 같은 값으로 설정하여 새로운 Vector128<T>을 만듭니다.Creates a new Vector128<T> with the element at the specified index set to the specified value and the remaining elements set to the same value as that in the given vector.
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)
형식 매개 변수
- T
입력 벡터의 형식입니다.The type of the input vector.
매개 변수
- vector
- Vector128<T>
나머지 요소를 가져올 벡터입니다.The vector to get the remaining elements from.
- index
- Int32
설정할 요소의 인덱스입니다.The index of the element to set.
- value
- T
요소를 설정할 값입니다.The value to set the element to.
반환
index
의 요소 값이 value
로 설정되고 나머지 요소는 vector
에 있는 요소와 같은 값으로 설정된 Vector128<T>입니다.A Vector128<T> with the value of the element at index
set to value
and the remaining elements set to the same value as that in vector
.
예외
vector
(T
)의 형식은 지원되지 않습니다.The type of vector
(T
) is not supported.
index
가 0 미만이거나 요소 수보다 큽니다.index
was less than zero or greater than the number of elements.