MatrixTFoldByColumnTU Method |
For each column, applies a function f to each element of the column, threading an accumulator argument through the computation.
Returns an array with the resulting accumulator states for each column.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic TU[] FoldByColumn<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 column.
- 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 column.
See Also