Click or drag to resize

VectorTMapIndexed(FuncInt32, T, T, VectorT, Zeros) Method

Applies a function to each value of this vector and replaces the value in the result vector. The index of each value (zero-based) is passed as first argument to the function. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public void MapIndexed(
	Func<int, T, T> f,
	Vector<T> result,
	Zeros zeros = Zeros.AllowSkip
)

Parameters

f  FuncInt32, T, T

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

result  VectorT

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

zeros  Zeros  (Optional)

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

See Also