Język

Vector256.Count<T>(Vector256<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::Vector256<T> vector, T value);
public static int Count<T>(System.Runtime.Intrinsics.Vector256<T> vector, T value);
static member Count : System.Runtime.Intrinsics.Vector256<'T> * 'T -> int
Public Function Count(Of T) (vector As Vector256(Of T), value As T) As Integer

Parametry typu

T

Typ elementów w wektorze.

Parametry

vector
Vector256<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