Click or drag to resize

MatrixStorageTFoldByColumnTU Method

Folds each column into a target state array.

Namespace: Altaxo.Calc.LinearAlgebra.Storage
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public void FoldByColumn<TU>(
	TU[] target,
	Func<TU, T, TU> f,
	Func<TU, int, TU> finalize,
	TU[] state,
	Zeros zeros
)

Parameters

target  TU
The array receiving the finalized column states.
f  FuncTU, T, TU
The accumulation function.
finalize  FuncTU, Int32, TU
The finalization function.
state  TU
The initial state array.
zeros  Zeros
How zeros are handled during the fold.

Type Parameters

TU
The accumulator type.
Remarks
The state array will not be modified, unless it is the same instance as the target array, which is allowed.
See Also