Vector512.IndexOf<T>(Vector512<T>, T) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定向量中与给定值相等的第一个元素的索引。
public:
generic <typename T>
static int IndexOf(System::Runtime::Intrinsics::Vector512<T> vector, T value);
public static int IndexOf<T>(System.Runtime.Intrinsics.Vector512<T> vector, T value);
static member IndexOf : System.Runtime.Intrinsics.Vector512<'T> * 'T -> int
Public Function IndexOf(Of T) (vector As Vector512(Of T), value As T) As Integer
类型参数
- T
向量中的元素的类型。
参数
- vector
- Vector512<T>
要检查其元素的向量。
- value
- T
要签入的值 vector
返回
表示 vector 第 value一个等于的元素的索引;否则, -1 如果不存在此类元素。