Click or drag to resize

VectorMath.Any(Double[], Func<Double, Boolean>, Int32) Method

Determines whether any element of the vector satisfies a condition.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax
C#
public static bool Any(
	this double[] vector,
	Func<double, bool> predicate,
	out int atIndex
)

Parameters

vector  Double[]
The vector.
predicate  Func<Double, Boolean>
The condition to satisfy.
atIndex  Int32
The index of the first element that satisfied the condition; or -1 if no element satisfied the condition.

Return Value

Boolean
True if any element of the vector satisfies the condition; false otherwise, or if the vector is null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Double[]. 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).
See Also