GEYE

From Jacket Wiki

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

Identity matrix on GPU.

Usage

Jacket for M Language
    Supported Syntax
    
geye(n)
geye(m,n)
geye([m n])
geye(size(A))
geye(m, n, classname)
geye([m n], classname)
 
% new in v1.7
eye([m n], class(X))
eye([m n], gsingle)
    

GFOR Supported

Yes

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE   GINT32   GINT8   GUINT32   GUINT8   COMPLEX 

Types Not Supported

-  GLOGICAL 

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/eye.html

Notes

  • The size inputs M, N, and P... should be nonnegative integers. Negative integers are treated as 0.
  • All subsequent computations on Y are performed on the graphics card (GPU).
  • Use the standard MATLAB conversions to return data to the CPU (DOUBLE,SINGLE,..)
  • Actual GPU computation is delayed until the results are requested.
Y = geye(2)
Y = geye(4,8)
Y = geye([4 8])
Y = geye(size(A))
Y = geye(2, 2, 'single')
Y = geye([2 2], 'uint32')
Y = eye([2 2], class(X))  % new in v1.7

See Also

GONES, GZEROS, MAGIC

Views
Personal tools