GUINT8

From Jacket Wiki

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

Convert to unsigned 8-bit integer on GPU

Usage

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

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/uint8.html
More Details
  • Use the standard MATLAB conversions to return data to the CPU (see below).
  • Examples Usage:
A = guint8(rand(4) + 8);
B = (A + 4)/9;
C = uint8(B);     bring back to CPU

Notes

  • Some arithmetic operations are defined for GUINT8 on interaction with other GUINT8 arrays. For instance, +, -, * are supported for use. But for the most part, support for GUINT8 is preliminary at present.
  • All subsequent computations on A are performed on the graphics card (GPU).
  • Actual GPU computation is delayed until the results are requested.

See Also

GDOUBLE, GSINGLE, ISINTEGER, GUINT32, GINT8, GINT32, GONES, GZEROS

Views
Personal tools