Vector.Count True Method
Returns the number of elements in a boolean vector
that are true.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The number of elements in values that are true.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static int CountTrue(
this Vector<bool> values
)
Parameters
Return Value
Int32The number of elements in values that are true.