SUM

From Jacket Wiki

Jump to: navigation, search
Back to Function List

Sum of array elements

Usage

Jacket for M Language
    Supported Syntax
    
B = sum(A)
B = sum(A,dim)
    

GFOR Supported

Yes

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE   COMPLEX 

Types Not Supported

-  GLOGICAL   GINT32   INT8   GUINT32   GUINT8 

CPU usageJacket only contains GPU computing functions. To run functions on the CPU, try one of the MathWorks products:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/sum.html

Notes

  • SUM is GFOR compatible for all data types except gdouble complex.
  • Support for complex variables is currently to 3 or fewer dimensions.
  • Supported for any number of columns, rows, or sub-problems. i.e. sum(A,1) will function correctly for any size A barring a kernel timeout.

See Also

ACCUMARRAY, CUMSUM, DIFF, ISFLOAT, PROD

Personal tools