%ISDIAG  Determine whether a gpuArray matrix is diagonal.
%   ISDIAG(X)
%   
%   Example:
%    
%      X = gpuArray.eye(1000);
%      isdiag(X)
%   
%   See also ISDIAG, GPUARRAY, GPUARRAY.EYE.
%   


%   Copyright 2014 The MathWorks, Inc.

