Vector.All Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
All( | Returns whether all values in a vector are true. |
All<T>(Vector<T>, Func<T, Boolean>) | Returns whether all values in a vector satisfy the specified predicate. |
All<T1, T2>(Vector<T1>, Vector<T2>, Func<T1, T2, Boolean>) | Returns whether all pairs of corresponding values in two vector satisfy the specified predicate. |
All(Vector<Boolean>)
Returns whether all values in a vector are true.
public static bool All(
this Vector<bool> operand
)
Parameters
Return Value
Booleantrue if all elements of operand are true; otherwise false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<Boolean>. 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).Exceptions
Argument | operand is null. |
All<T>(Vector<T>, Func<T, Boolean>)
Returns whether all values in a vector satisfy the specified
predicate.
public static bool All<T>(
this Vector<T> operand,
Func<T, bool> predicate
)
Parameters
Type Parameters
- T
- The element type of operand.
Return Value
Booleantrue if predicate returns true for all elements of operand; otherwise false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. 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).Exceptions
Argument | operand is null. -or- predicate is null. |
All<T1, T2>(Vector<T1>, Vector<T2>, Func<T1, T2, Boolean>)
Returns whether all pairs of corresponding values in two vector satisfy
the specified predicate.
public static bool All<T1, T2>(
Vector<T1> operand1,
Vector<T2> operand2,
Func<T1, T2, bool> predicate
)
Parameters
- operand1 Vector<T1>
- A vector.
- operand2 Vector<T2>
- A vector.
- predicate Func<T1, T2, Boolean>
- The predicate to test.
Type Parameters
- T1
- The element type of operand1.
- T2
- The element type of operand2.
Return Value
Booleantrue if predicate returns true for all elements of operand1 and corresponding elements of operand2; otherwise false.
Exceptions
Argument | operand1 is null. -or- operand2 is null. -or- predicate is null. |
Dimension | operand1 and operand2 do not have the same length. |