Click or drag to resize

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

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