Language

Vector.IndexOfWhereAllBitsSet(Vector) Method

Definition

Determines the index of the first element in a vector that has all bits set.

public:
generic 
 static int IndexOfWhereAllBitsSet(System::Numerics::Vector vector);
public static int IndexOfWhereAllBitsSet(System.Numerics.Vector vector);
static member IndexOfWhereAllBitsSet : System.Numerics.Vector<'T> -> int
Public Function IndexOfWhereAllBitsSet(Of T) (vector As Vector(Of T)) As Integer

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector

The vector whose elements are being checked.

Returns

The index into vector representing the first element that had all bits set; otherwise, -1 if no such element exists.

Applies to