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
vector
Vector512<T>The vector whose elements are being checked.
Returns
- int
The index into
vector
representing the last element that had all bits set; otherwise,-1
if no such element exists.
Type Parameters
T
The type of the elements in the vector.
Exceptions
- NotSupportedException
The type of
vector
(T
) is not supported.