ILNumerics Ultimate VS

ILMathsumall Method (BaseArrayInt16)

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<short> sumall(
	BaseArray<short> A
)

Parameters

A
Type: ILNumericsBaseArrayInt16
Input array.

Return Value

Type: RetArrayInt16
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