MatrixTMapTU(FuncT, TU, Zeros) Method |
Applies a function to each value of this matrix and returns the results as a new matrix.
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 Matrix<TU> Map<TU>(
Func<T, TU> f,
Zeros zeros = Zeros.AllowSkip
)
where TU : struct, new(), IEquatable<TU>, IFormattable
Parameters
- f FuncT, TU
- The mapping function to apply to each value.
- zeros Zeros (Optional)
- Controls whether zero values may be skipped.
Type Parameters
- TU
- The target element type.
Return Value
MatrixTUA new matrix containing the mapped values.
See Also