Returns the number of elements in a boolean vector
that are .
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static int CountTrue(
this Vector<bool> values
)
<ExtensionAttribute>
Public Shared Function CountTrue (
values As Vector(Of Boolean)
) As Integer
public:
[ExtensionAttribute]
static int CountTrue(
Vector<bool>^ values
)
[<ExtensionAttribute>]
static member CountTrue :
values : Vector<bool> -> int
Parameters
- values
- Type: Extreme.MathematicsVectorBoolean
A vector.
Return Value
Type:
Int32The number of elements in
values
that are
.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VectorBoolean. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference