Vector.GetElement<T>(Vector<T>, Int32) 메서드

정의

지정한 인덱스에 있는 요소를 가져옵니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T GetElement(System::Numerics::Vector<T> vector, int index);
public static T GetElement<T> (this System.Numerics.Vector<T> vector, int index);
static member GetElement : System.Numerics.Vector<'T> * int -> 'T
<Extension()>
Public Function GetElement(Of T) (vector As Vector(Of T), index As Integer) As T

형식 매개 변수

T

벡터에 있는 요소의 형식입니다.

매개 변수

vector
Vector<T>

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

index
Int32

가져올 요소의 인덱스입니다.

반환

T

index에 있는 요소의 값입니다.

예외

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

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

적용 대상