Click or drag to resize

MatrixTFoldRowsTU Method

Applies a function f to each row 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> FoldRows<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 row vector.
state  VectorTU
The initial accumulator state.

Type Parameters

TU
The accumulator element type.

Return Value

VectorTU
The accumulated result vector.
See Also