%FIND Find indices of nonzero elements of gpuArray
%   I = find(X)
%   I = find(X,K)
%   I = find(X,K,'first')
%   I = find(X,K,'last')
%   [I,J] = find(X,...)
%   [I,J,V] = find(X,...)
%   
%   Example:
%    
%       N = 1000;
%       X = gpuArray.rand(N) > 0.5 % build random array of ones and zeros
%       I = find(X) % find the indices where elements of X are non-zero
%   
%   See also FIND, GPUARRAY.


%   Copyright 2006-2013 The MathWorks, Inc.
