Table of Contents

Method ExGetElement

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

ExGetElement<T>(in Vector256<T>, int)

(ExType) Gets the element at the specified index. It is unsafe method, it ignores the index range check (获取指定索引处的元素. 它是非安全的, 它忽略了索引的范围检查).

public static T ExGetElement<T>(this in Vector256<T> vector, int index) where T : struct

Parameters

vector Vector256<T>

The vector to get the element from (要从中获取元素的向量).

index int

The index of the element to get (要获取的元素的索引).

Returns

T

The element at the specified index(指定索引处的元素).

Type Parameters

T

The type of the input vector element (输入向量元素的类型).