Vector.CountWhereAllBitsSet<T>(Vector<T>) 方法

定义

确定已设置所有位的向量中的元素数。

public:
generic <typename T>
 static int CountWhereAllBitsSet(System::Numerics::Vector<T> vector);
public static int CountWhereAllBitsSet<T>(System.Numerics.Vector<T> vector);
static member CountWhereAllBitsSet : System.Numerics.Vector<'T> -> int
Public Function CountWhereAllBitsSet(Of T) (vector As Vector(Of T)) As Integer

类型参数

T

向量中的元素的类型。

参数

vector
Vector<T>

要检查其元素的向量。

返回

已设置其所有位的 vector 元素数。

适用于