Click or drag to resize

VectorTMapTU(FuncT, TU, Zeros) Method

Applies a function to each value of this vector and returns the results as a new vector. 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 Vector<TU> Map<TU>(
	Func<T, TU> f,
	Zeros zeros = Zeros.AllowSkip
)
where TU : struct, new(), IEquatable<TU>, IFormattable

Parameters

f  FuncT, TU

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

zeros  Zeros  (Optional)

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

Type Parameters

TU

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

Return Value

VectorTU

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

See Also