MatrixMathMapIndexed(IROMatrixDouble, FuncInt32, Int32, Double, Double, IMatrixDouble) Method |
Elementwise application of a function to each element of a matrix. 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,
Func<int, int, double, double> function,
IMatrix<double> result
)
Parameters
- src1 IROMatrixDouble
- Matrix to use the values from.
- function FuncInt32, Int32, Double, Double
- Function to be applied to each element of the matrix. 1st argument is the row number, 2nd argument the column number, 3rd argument the element of the src matrix,.
- result IMatrixDouble
- Matrix to store the result. This may be the same instance as the source matrix.
See Also