Click or drag to resize

IROMatrixLevel1TMapIndexed(FuncInt32, Int32, T, T, IMatrixT, Zeros) Method

Elementwise mapping of a function to the elements of a matrix, and storing the result in another matrix.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
void MapIndexed(
	Func<int, int, T, T> function,
	IMatrix<T> result,
	Zeros zeros = Zeros.AllowSkip
)

Parameters

function  FuncInt32, Int32, T, T
The function to apply. First arg in the row index, 2nd arg the column index, and 3rd arg the matrix element.
result  IMatrixT
The matrix where to store the result.
zeros  Zeros  (Optional)
Designates if zero elements (i.e. banded or sparse matrices) are allowed to omit in the mapping.
See Also