Array Math.Sum(Double[], Int 32, Int 32) Method
Computes the sum of the elements in a segment of an array.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The sum of the specified elements in array.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static double Sum(
this double[] array,
int startIndex,
int Length
)
Parameters
- array Double[]
- A Double array.
- startIndex Int32
- The zero-based index of the first element to be included in the sum.
- Length Int32
- The length of the segment.
Return Value
DoubleThe sum of the specified elements in array.