%SPONES Replace nonzero sparse gpuArray matrix elements with ones
%   D2 = SPONES(D)
%   
%   Example:
%    
%       N = 1000;
%       D1 = gpuArray(sprand(N,N,1/N));
%       D2 = spones(D1)
%   
%   returns D2 with the same sparsity structure as D1, but 1's in the nonzero
%   positions.
%   
%   t1 = issparse(D1)
%   t2 = issparse(D2)
%   
%   returns t1 and t2 both equal to true.
%   
%   See also SPONES, GPUARRAY, GPUARRAY/SPRAND.
%   


%   Copyright 2006-2014 The MathWorks, Inc.
