Click or drag to resize

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.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public 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

TU
An array of accumulator states, one for each column.
See Also