Vector.All<T>(Vector<T>, Func<T, Boolean>) Method

Returns whether all values in a vector satisfy the specified predicate.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static bool All<T>(
	this Vector<T> operand,
	Func<T, bool> predicate
)

Parameters

operand  Vector<T>
A vector.
predicate  Func<T, Boolean>
The predicate to test.

Type Parameters

T
The element type of operand.

Return Value

Boolean
true 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

ArgumentNullException

operand is null

-or-

predicate is null

See Also