Vector256.GetElement<T>(Vector256<T>, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the element at the specified index.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetElement(System::Runtime::Intrinsics::Vector256<T> vector, int index);
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static T GetElement(System::Runtime::Intrinsics::Vector256<T> vector, int index);
public static T GetElement<T>(this System.Runtime.Intrinsics.Vector256<T> vector, int index);
public static T GetElement<T>(this System.Runtime.Intrinsics.Vector256<T> vector, int index) where T : struct;
static member GetElement : System.Runtime.Intrinsics.Vector256<'T> * int -> 'T
static member GetElement : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * int -> 'T (requires 'T : struct)
<Extension()>
Public Function GetElement(Of T) (vector As Vector256(Of T), index As Integer) As T
<Extension()>
Public Function GetElement(Of T As Structure) (vector As Vector256(Of T), index As Integer) As T
Type Parameters
- T
The type of the input vector.
Parameters
- vector
- Vector256<T>
The vector to get the element from.
- index
- Int32
The index of the element to get.
Returns
T
The value of the element at index
.
Exceptions
The type of vector
(T
) is not supported.
index
was less than zero or greater than the number of elements.
Applies to
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.