IROMatrixLevel1TMapIndexedT1(T1, FuncInt32, Int32, T, T1, 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.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxvoid MapIndexed<T1>(
T1 sourceParameter1,
Func<int, int, T, T1, T> function,
IMatrix<T> result,
Zeros zeros = Zeros.AllowSkip
)
Parameters
- sourceParameter1 T1
- Additional auxilary parameter to be passed to the function.
- function FuncInt32, Int32, T, T1, T
- The function to apply. First arg in the row index, 2nd arg the column index, 3rd arg the matrix element, and 4th arg the parameter given in sourceParameter1.
- 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.
Type Parameters
- T1
- The type of the additional source parameter.
See Also