Click or drag to resize

VectorTMapConvertTU Method

Applies a function to each value of this vector and replaces the value in the result 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.3572.0 (4.8.3572.0)
Syntax
C#
public void MapConvert<TU>(
	Func<T, TU> f,
	Vector<TU> result,
	Zeros zeros = Zeros.AllowSkip
)
where TU : struct, new(), IEquatable<TU>, IFormattable

Parameters

f  FuncT, TU
The conversion function.
result  VectorTU
The destination vector.
zeros  Zeros  (Optional)
Specifies whether zero values may be skipped.

Type Parameters

TU
The target element type.
See Also