From Jacket Wiki
Back to Function List
Determine whether input is object of given class
Usage
| Jacket for M Language |
| | Supported Syntax |
| |
|
| |
|
GFOR Supported
|
Yes
|
|
GCOMPILE Supported
|
No
|
|
Types Supported
|
- GDOUBLE GSINGLE GLOGICAL GINT32 GINT8 GUINT32 GUINT8 COMPLEX
|
|
Types Not Supported
|
-
|
| CPU usage | Jacket 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