Click or drag to resize

MatrixTFind2TOther Method

Returns a tuple with the index and values of the first element pair of two matrices of the same size satisfying a predicate, or null if none is found. Zero elements may be skipped on sparse data structures if allowed (default).

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public Tuple<int, int, T, TOther> Find2<TOther>(
	Func<T, TOther, bool> predicate,
	Matrix<TOther> other,
	Zeros zeros = Zeros.AllowSkip
)
where TOther : struct, new(), IEquatable<TOther>, IFormattable

Parameters

predicate  FuncT, TOther, Boolean
The predicate used to test each pair of values.
other  MatrixTOther
The other matrix supplying the second value of each pair.
zeros  Zeros  (Optional)
Controls whether zero values may be skipped.

Type Parameters

TOther
The element type of the other matrix.

Return Value

TupleInt32, Int32, T, TOther
The first matching indexed value pair, or null if none is found.
See Also