Click or drag to resize

MatrixMathMap(IROMatrixDouble, FuncDouble, 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 Map(
	IROMatrix<double> src1,
	Func<double, double> function,
	IMatrix<double> result
)

Parameters

src1  IROMatrixDouble
Matrix to use the values from.
function  FuncDouble, Double
Function to be applied to each element of the matrix. The argument is the element of the source matrix.
result  IMatrixDouble
Matrix to store the result. This may be the same instance as the source matrix.
See Also