Click or drag to resize

VectorMath.MapIndexed(Int32[], Int32[], Func<Int32, Int32, Int32, Int32>, Int32[]) Method

Elementwise application of a function to corresponding elements of two vectors. The result is stored in another vector or in the same vector.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax
C#
public static void MapIndexed(
	int[] src1,
	int[] src2,
	Func<int, int, int, int> function,
	int[] result
)

Parameters

src1  Int32[]
First source vector.
src2  Int32[]
Second source vector.
function  Func<Int32, Int32, Int32, Int32>
The function to apply to every element. 1st argument is the element from src1, 2nd argument is the element from src2, 3rd argument is the element's index.
result  Int32[]
The vector to store the results. This may or may not be the same instance as the source vector.
See Also