ILNumerics Ultimate VS

ILMathsumall Method (BaseArrayInt64)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Computes the sum of all elements of A.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<long> sumall(
	BaseArray<long> A
)

Parameters

A
Type: ILNumericsBaseArrayInt64
Input array.

Return Value

Type: RetArrayInt64
New scalar array with the sum of all elements.
Remarks

The operation is efficiently performed on all elements of the input array A.

The operation is performed in multiple threads, according to the current settings of MaxNumberThreads.

The input array A is not altered.

This operation returns a scalar array, regardless of the shape of A. The number of dimensions of the scalar returned depends on the setting of MinNumberOfArrayDimensions. If A is empty the scalar value returned corresponds to the default value of the element datatype. For numerical element types the default value is 0. For boolean / logical elements the default is false.

[ILNumerics Computing Engine]

See Also

Reference