Język

Vector512.Count<T>(Vector512<T>, T) Metoda

Definicja

Określa liczbę elementów w wektorze, które są równe danej wartości.

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 -> int
Public Function Count(Of T) (vector As Vector512(Of T), value As T) As Integer

Parametry typu

T

Typ elementów w wektorze.

Parametry

vector
Vector512<T>

Wektor, którego elementy są sprawdzane.

value
T

Wartość do zaewidencjonowania vector

Zwraca

Liczba elementów, które vector są równe value.

Dotyczy