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 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

입력 벡터의 형식입니다.

매개 변수

vector
Vector128<T>

나머지 요소를 가져올 벡터입니다.

index
Int32

설정할 요소의 인덱스입니다.

value
T

요소를 설정할 값입니다.

반환

Vector128<T>

index의 요소 값이 value로 설정되고 나머지 요소는 vector에 있는 요소와 같은 값으로 설정된 Vector128<T>입니다.

예외

vector(T)의 형식은 지원되지 않습니다.

index가 0 미만이거나 요소 수보다 큽니다.

적용 대상