Table of Contents

Method LastIndexOf

Namespace
Zyl.ExSpans.Impl
Assembly
ExSpans.dll

LastIndexOf<T>(Vector128<T>, T)

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

public static int LastIndexOf<T>(Vector128<T> vector, T value) where T : struct

Parameters

vector Vector128<T>

The vector whose elements are being checked.

value T

The value to check for in vector

Returns

int

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

Type Parameters

T

The type of the elements in the vector.

Exceptions

NotSupportedException

The type of vector and value (T) is not supported.