MatrixStorageTFold2TOther, TState Method |
Folds values from this matrix and another matrix into a single state value.
Namespace: Altaxo.Calc.LinearAlgebra.StorageAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic TState Fold2<TOther, TState>(
MatrixStorage<TOther> other,
Func<TState, T, TOther, TState> f,
TState state,
Zeros zeros
)
where TOther : struct, new(), IEquatable<TOther>, IFormattable
Parameters
- other MatrixStorageTOther
- The other matrix storage.
- f FuncTState, T, TOther, TState
- The accumulation function.
- state TState
- The initial state.
- zeros Zeros
- How zeros are handled during the fold.
Type Parameters
- TOther
- The element type of the other matrix.
- TState
- The accumulator type.
Return Value
TStateThe final accumulated state.
See Also