SUB2IND

From Jacket Wiki

Jump to: navigation, search
Back to Function List

Convert subscripts to linear indices

Usage

Jacket for M Language
    Supported Syntax
    
linearInd = sub2ind(matrixSize, rowSub, colSub)
linearInd = sub2ind(arraySize, dim1Sub, dim2Sub, dim3Sub, ...)
    

GFOR Supported

Yes

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE   COMPLEX 

Types Not Supported

-  GLOGICAL   GINT32   GINT8   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/sub2ind.html


See Also

FIND, IND2SUB, SIZE

Views
Personal tools