ManagedArrayFunctions.Sum Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

Sum(Int32, ReadOnlySpanSlice<T>) Computes the sum of all elements in the span.
Sum(Int32, ReadOnlySpan<Double>, Int32) Computes the sum of all elements in the span.
Sum<TStorage>(Int32, TStorage) Computes the sum of all elements in the array.

Sum(Int32, ReadOnlySpan<Double>, Int32)

Computes the sum of all elements in the span.
C#
public override double Sum(
	int length,
	ReadOnlySpan<double> operand,
	int stride
)

Parameters

length  Int32
The number of elements in the span.
operand  ReadOnlySpan<Double>
The span that holds the operands.
stride  Int32
The distance between elements in operand.

Return Value

Double
The sum of the elements of operand.

See Also