Click or drag to resize

MatrixTFoldColumnsTU Method

Applies a function f to each column vector, threading an accumulator vector argument through the computation. Returns the resulting accumulator vector.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public Vector<TU> FoldColumns<TU>(
	Func<Vector<TU>, Vector<T>, Vector<TU>> f,
	Vector<TU> state
)
where TU : struct, new(), IEquatable<TU>, IFormattable

Parameters

f  FuncVectorTU, VectorT, VectorTU
The folding function applied to each column vector.
state  VectorTU
The initial accumulator state.

Type Parameters

TU
The accumulator element type.

Return Value

VectorTU
The accumulated result vector.
See Also