GLOGICAL

From Jacket Wiki

Jump to: navigation, search
Back to Function List, Jacket Basics

Convert numeric values to GPU-based logical

Usage

Jacket for M Language
    Supported Syntax
    
A = glogical(B)
    

GFOR Supported

Yes

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE   GLOGICAL   GINT32   INT8   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/logical.html
More Details
  • Use the standard MATLAB conversions to return data to the CPU (see below).
  • Examples Usage:
A = glogical([true true false]);
B = A & false;
C = logical(B);     bring back to CPU

Notes

  • All subsequent computations on A are performed on the graphics card (GPU).
  • Actual GPU computation is delayed until the results are requested.

See Also

GONES, GZEROS, GEYE, GSINGLE, GDOUBLE, GINT32, GUINT32

Personal tools