Click or drag to resize

MatrixMathMapIndexedT1(IROMatrixDouble, T1, FuncInt32, Int32, Double, T1, 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.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void MapIndexed<T1>(
	IROMatrix<double> src1,
	T1 parameter1,
	Func<int, int, double, T1, double> function,
	IMatrix<double> result
)

Parameters

src1  IROMatrixDouble
Matrix to use the values from.
parameter1  T1
An auxillary parameter.
function  FuncInt32, Int32, Double, T1, 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, 4th argument the auxillary parameter1.
result  IMatrixDouble
Matrix to store the result. This may be the same instance as the source matrix.

Type Parameters

T1

[Missing <typeparam name="T1"/> documentation for "M:Altaxo.Calc.LinearAlgebra.MatrixMath.MapIndexed``1(Altaxo.Calc.LinearAlgebra.IROMatrix{System.Double},``0,System.Func{System.Int32,System.Int32,System.Double,``0,System.Double},Altaxo.Calc.LinearAlgebra.IMatrix{System.Double})"]

See Also