Vector128.GetElement<T>(Vector128<T>, Int32) 메서드
정의
지정한 인덱스에 있는 요소를 가져옵니다.Gets the element at the specified index.
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static T GetElement(System::Runtime::Intrinsics::Vector128<T> vector, int index);
public static T GetElement<T> (this System.Runtime.Intrinsics.Vector128<T> vector, int index) where T : struct;
static member GetElement : System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> * int -> 'T (requires 'T : struct)
<Extension()>
Public Function GetElement(Of T As Structure) (vector As Vector128(Of T), index As Integer) As T
형식 매개 변수
- T
입력 벡터의 형식입니다.The type of the input vector.
매개 변수
- vector
- Vector128<T>
요소를 가져올 벡터입니다.The vector to get the element from.
- index
- Int32
가져올 요소의 인덱스입니다.The index of the element to get.
반환
- T
index
에 있는 요소의 값입니다.The value of the element at index
.
예외
vector
(T
)의 형식은 지원되지 않습니다.The type of vector
(T
) is not supported.
index
가 0 미만이거나 요소 수보다 큽니다.index
was less than zero or greater than the number of elements.