Click or drag to resize

MatrixMathSetMatrixElements(IMatrixDouble, FuncInt32, Int32, Double) Method

Sets the matrix elements to the value provided by a setter function Setter.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void SetMatrixElements(
	this IMatrix<double> a,
	Func<int, int, double> Setter
)

Parameters

a  IMatrixDouble
The matrix for which to set the elements.
Setter  FuncInt32, Int32, Double
The setter function. First arg is the row index, 2nd arg the column index. The return value is used to set the matrix element.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMatrixDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also