Edit

Share via


Vector512.IndexOf<T>(Vector512<T>, T) Method

Definition

Determines the index of the first element in a vector that is equal to a given value.

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

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector512<T>

The vector whose elements are being checked.

value
T

The value to check for in vector

Returns

The index into vector representing the first element that was equal to value; otherwise, -1 if no such element exists.

Applies to