GSINGLE

From Jacket Wiki

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

Convert to GPU-based single precision.

Usage

Jacket for M Language
    Supported Syntax
    
A = gsingle(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/single.html

Notes

  • All subsequent computations on A are performed on the graphics card (GPU).
  • Use the standard MATLAB conversions to return data to the CPU (see below).
  • Actual GPU computation is delayed until the results are requested.
A = gsingle(rand(4) + 8);
B = (A + 4)/9;
C = single(B);     bring back to CPU

See Also

GONES, GZEROS, GEYE, GDOUBLE, GLOGICAL, GINT32, GUINT32

Personal tools