Method LastIndexOfWhereAllBitsSet
LastIndexOfWhereAllBitsSet<T>(Vector512<T>)
Determines the index of the last element in a vector that has all bits set.
public static int LastIndexOfWhereAllBitsSet<T>(Vector512<T> vector) where T : struct
Parameters
vectorVector512<T>The vector whose elements are being checked.
Returns
- int
The index into
vectorrepresenting the last element that had all bits set; otherwise,-1if no such element exists.
Type Parameters
TThe type of the elements in the vector.
Exceptions
- NotSupportedException
The type of
vector(T) is not supported.