ISA

From Jacket Wiki

Jump to: navigation, search
Back to Function List

Determine whether input is object of given class

Usage

Jacket for M Language
    Supported Syntax
    
isa(var, class_name)
    

GFOR Supported

Yes

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/isa.html
More Details You can check for specific class names, or you can check the superclass 'garray':
>> var = grand(2,'single');
>> isa(var, 'gsingle'); % true
>> isa(var, 'garray');  % true
>> isa(var, 'single');  % false -- reserved for CPU data
 
>> var = glogical(rand(2) > .5);
>> isa(var, 'garray');  % true


See Also

CLASS, EXIST

Views
Personal tools