MatrixMathMapIndexed(IROMatrixDouble, IROMatrixDouble, FuncInt32, Int32, Double, Double, Double, IMatrixDouble) Method |
Elementwise application of a function to each element of two matrices. The result is stored in another matrix or in the same matrix.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void MapIndexed(
IROMatrix<double> src1,
IROMatrix<double> src2,
Func<int, int, double, double, double> function,
IMatrix<double> result
)
Parameters
- src1 IROMatrixDouble
- First matrix to use the values from.
- src2 IROMatrixDouble
- Second matrix to use the values from.
- function FuncInt32, Int32, Double, Double, Double
- Function to be applied to each element of src1 and src2. 1st argument is the row number, 2nd argument is the column number, 3rd argument is the element of matrix src1, 4th argument is the element of matrix src2.
- result IMatrixDouble
- Matrix to store the result. This may be the same instance as one of the matrices src1 or src2.
See Also