Click or drag to resize

VectorTFold2TOther, TState Method

Applies a function to update the status with each value pair of two vectors and returns the resulting status.

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

Parameters

f  FuncTState, T, TOther, TState

[Missing <param name="f"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Vector`1.Fold2``2(System.Func{``1,`0,``0,``1},``1,Altaxo.Calc.LinearAlgebra.Vector{``0},Altaxo.Calc.LinearAlgebra.Zeros)"]

state  TState

[Missing <param name="state"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Vector`1.Fold2``2(System.Func{``1,`0,``0,``1},``1,Altaxo.Calc.LinearAlgebra.Vector{``0},Altaxo.Calc.LinearAlgebra.Zeros)"]

other  VectorTOther

[Missing <param name="other"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Vector`1.Fold2``2(System.Func{``1,`0,``0,``1},``1,Altaxo.Calc.LinearAlgebra.Vector{``0},Altaxo.Calc.LinearAlgebra.Zeros)"]

zeros  Zeros  (Optional)

[Missing <param name="zeros"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Vector`1.Fold2``2(System.Func{``1,`0,``0,``1},``1,Altaxo.Calc.LinearAlgebra.Vector{``0},Altaxo.Calc.LinearAlgebra.Zeros)"]

Type Parameters

TOther

[Missing <typeparam name="TOther"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Vector`1.Fold2``2(System.Func{``1,`0,``0,``1},``1,Altaxo.Calc.LinearAlgebra.Vector{``0},Altaxo.Calc.LinearAlgebra.Zeros)"]

TState

[Missing <typeparam name="TState"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Vector`1.Fold2``2(System.Func{``1,`0,``0,``1},``1,Altaxo.Calc.LinearAlgebra.Vector{``0},Altaxo.Calc.LinearAlgebra.Zeros)"]

Return Value

TState

[Missing <returns> documentation for "M:Altaxo.Calc.LinearAlgebra.Vector`1.Fold2``2(System.Func{``1,`0,``0,``1},``1,Altaxo.Calc.LinearAlgebra.Vector{``0},Altaxo.Calc.LinearAlgebra.Zeros)"]

See Also