Click or drag to resize

VectorMathAny(IReadOnlyListDouble, FuncDouble, 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.3179.0 (4.8.3179.0)
Syntax
C#
public static bool Any(
	this IReadOnlyList<double> vector,
	Func<double, bool> predicate,
	out int atIndex
)

Parameters

vector  IReadOnlyListDouble
The vector.
predicate  FuncDouble, 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 IReadOnlyListDouble. 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