Click or drag to resize

VectorStorageTFold2TOther, TState Method

Folds two storages into a single accumulated state.

Namespace: Altaxo.Calc.LinearAlgebra.Storage
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public TState Fold2<TOther, TState>(
	VectorStorage<TOther> other,
	Func<TState, T, TOther, TState> f,
	TState state,
	Zeros zeros
)
where TOther : struct, new(), IEquatable<TOther>, IFormattable

Parameters

other  VectorStorageTOther
The other storage.
f  FuncTState, T, TOther, TState
The folding function.
state  TState
The initial state.
zeros  Zeros
Specifies how zero values are treated.

Type Parameters

TOther
The element type of the other storage.
TState
The accumulator state type.

Return Value

TState
The final accumulated state.
See Also