VectorMathMapIndexed(IReadOnlyListDouble, FuncInt32, Double, Double, IVectorDouble) Method |
Elementwise application of a function to each element of a vector.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void MapIndexed(
IReadOnlyList<double> src1,
Func<int, double, double> function,
IVector<double> result
)
Parameters
- src1 IReadOnlyListDouble
- The source vector.
- function FuncInt32, Double, Double
- The function to apply to every element. 1st argument is the element, 2nd argument is the element's index.
- result IVectorDouble
- The vector to store the results. This may be the same instance as the source vector.
See Also