SWITCH

From Jacket Wiki

Jump to: navigation, search
Back to Function List

Switch among several cases, based on expression

Usage

Jacket for M Language
    Supported Syntax
    
switch switch_expr
 case case_expr
    statement, ..., statement
  case {case_expr1, case_expr2, case_expr3, ...}
    statement, ..., statement
  otherwise
    statement, ..., statement
end
    

GFOR Supported

No

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE   GLOGICAL   GINT32   GINT8   GUINT32   GUINT8   COMPLEX 

Types Not Supported

-

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


See Also

CASE, OTHERWISE, END, IF, ELSE, ELSEIF, WHILE

Views
Personal tools