NNZ

From Jacket Wiki

Jump to: navigation, search
Back to Function List

Number of nonzero matrix elements

Usage

Jacket for M Language
    Supported Syntax
    
n = nnz(X)
    

GFOR Supported

No

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE 

Types Not Supported

-  GLOGICAL   GINT32   INT8   GUINT32   GUINT8   COMPLEX 

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/nnz.html

Notes

  • Inputs must be real and non-sparse

See Also

FIND, ISA, NONZEROS, NZMAX, SIZE, WHOS

Personal tools