MatrixTFoldByRowTU Method |
For each row, applies a function f to each element of the row, threading an accumulator argument through the computation.
Returns an array with the resulting accumulator states for each row.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic TU[] FoldByRow<TU>(
Func<TU, T, TU> f,
TU state,
Zeros zeros = Zeros.AllowSkip
)
Parameters
- f FuncTU, T, TU
- The folding function applied to each element.
- state TU
- The initial accumulator state for each row.
- zeros Zeros (Optional)
- Controls whether zero values may be skipped.
Type Parameters
- TU
- The accumulator type.
Return Value
TUAn array of accumulator states, one for each row.
See Also