%GPUARRAY.EYE Identity gpuArray matrix
%   D = GPUARRAY.EYE(N) is the N-by-N gpuArray matrix with ones on
%   the diagonal and zeros elsewhere.
%   
%   D = GPUARRAY.EYE(M,N) or GPUARRAY.EYE([M,N]) is the M-by-N 
%   gpuArray matrix with ones on the diagonal and zeros elsewhere.
%   
%   D = GPUARRAY.EYE() is the gpuArray scalar 1.
%   
%   D = GPUARRAY.EYE(M,N,CLASSNAME) or GPUARRAY.EYE([M,N],CLASSNAME)
%   is the M-by-N gpuArray identity matrix with underlying data of 
%   class CLASSNAME.
%   
%   D = EYE(...,'like',P) for a GPUARRAY argument P returns a GPUARRAY identity matrix of the 
%   same complexity as P and the requested size. If CLASSNAME is not specified then D has the
%   same underlying class as P. P must be of numeric or logical underlying class.
%   
%   Example:
%    
%       N = 1000;
%       % Create a 1000-by-1000 gpuArray with underlying class 'int32'.
%       D1 = gpuArray.eye(N,'int32');
%       % D2 is a 2000-by-2000 gpuArray with the same underlying class
%       D2 = eye(2000,'like',D1); 
%   
%   See also EYE, GPUARRAY.
%   


%   Copyright 2008-2015 The MathWorks, Inc.
