VectorMathMap(Double, Double, FuncDouble, Double, Double, Double) 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.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void Map(
double[] src1,
double[] src2,
Func<double, double, double> function,
double[] result
)
Parameters
- src1 Double
- First source vector.
- src2 Double
- Second source vector.
- function FuncDouble, Double, Double
- The function to apply to every element. 1st argument is the element from src1, 2nd argument is the element from src2.
- result Double
- The vector to store the results. This may or may not be the same instance as the source vector.
See Also