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.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic 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
VectorTUThe accumulated result vector.
See Also