Returns whether all values in a vector satisfy the specified
predicate.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static bool All<T>(
this Vector<T> operand,
Func<T, bool> predicate
)
<ExtensionAttribute>
Public Shared Function All(Of T) (
operand As Vector(Of T),
predicate As Func(Of T, Boolean)
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
static bool All(
Vector<T>^ operand,
Func<T, bool>^ predicate
)
[<ExtensionAttribute>]
static member All :
operand : Vector<'T> *
predicate : Func<'T, bool> -> bool
Parameters
- operand
- Type: Extreme.MathematicsVectorT
A vector. - predicate
- Type: SystemFuncT, Boolean
The predicate to test.
Type Parameters
- T
- The element type of operand.
Return Value
Type:
Boolean if
predicate
returns
for all elements of
operand; otherwise
.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VectorT. 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