ManagedArrayFunctions<T>.Sum Method

Computes the sum of all elements in the array.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public virtual T Sum(
	int length,
	ArraySlice<T> operand
)

Parameters

length  Int32
The number of elements in the array.
operand  ArraySlice<T>
The array that holds the operands.

Return Value

T
The sum of the elements of operand.

Implements

IArrayFunctions<T, TShape, TArray>.Sum(TShape, TArray)

See Also