Click or drag to resize

VectorMathMapIndexed(Single, FuncInt32, Single, Single, Single) Method

Elementwise application of a function to each element of a vector.

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

Parameters

src1  Single
The source vector.
function  FuncInt32, Single, Single
The function to apply to every element. 1st argument is the element, 2nd argument is the element's index.
result  Single
The vector to store the results. This may be the same instance as the source vector.
See Also