MatrixTMapIndexedConvertTU Method |
Applies a function to each value of this matrix and replaces the value in the result matrix.
The index of each value (zero-based) is passed as first argument to the function.
If forceMapZero is not set to true, zero values may or may not be skipped depending
on the actual data storage implementation (relevant mostly for sparse matrices).
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic void MapIndexedConvert<TU>(
Func<int, int, T, TU> f,
Matrix<TU> result,
Zeros zeros = Zeros.AllowSkip
)
where TU : struct, new(), IEquatable<TU>, IFormattable
Parameters
- f FuncInt32, Int32, T, TU
- The mapping function to apply to each indexed value.
- result MatrixTU
- The matrix that receives the converted values.
- zeros Zeros (Optional)
- Controls whether zero values may be skipped.
Type Parameters
- TU
- The target element type.
See Also