Vector512.Count<T>(Vector512<T>, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the number of elements in a vector that are equal to a given value.
public:
generic <typename T>
 static int Count(System::Runtime::Intrinsics::Vector512<T> vector, T value);public static int Count<T>(System.Runtime.Intrinsics.Vector512<T> vector, T value);static member Count : System.Runtime.Intrinsics.Vector512<'T> * 'T -> intPublic Function Count(Of T) (vector As Vector512(Of T), value As T) As IntegerType 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 number of elements in vector that are equal to value.