%GPUARRAY.ONES Ones gpuArray
%   D = GPUARRAY.ONES(N) is an N-by-N gpuArray matrix of ones.
%   
%   D = GPUARRAY.ONES(M,N) is an M-by-N gpuArray matrix of ones.
%   
%   D = GPUARRAY.ONES(M,N,K,...) or GPUARRAY.ONES([M,N,K,...])
%   is an M-by-N-by-K-by-... gpuArray of ones.
%   
%   D = GPUARRAY.ONES(M,N,K,..., CLASSNAME) or 
%   GPUARRAY.ONES([M,N,K,...], CLASSNAME) is an M-by-N-by-K-by-... 
%   gpuArray of ones of class specified by CLASSNAME.
%   
%   D = ONES(...,'like',P) for a GPUARRAY argument P returns a gpuArray of ones 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.
%   
%   Examples:
%    
%       N  = 1000;
%       D1 = gpuArray.ones(N);   % 1000-by-1000 gpuArray matrix of ones
%       D2 = gpuArray.ones(N,N*2); % 1000-by-2000
%       D3 = gpuArray.ones([N,N*2], 'int8'); % underlying class 'int8'
%       D4 = ones(N,'like',D3) % 1000-by-1000 gpuArray with underlying class 'int8'
%   
%   See also ONES, GPUARRAY, GPUARRAY/ZEROS.


%   Copyright 2008-2015 The MathWorks, Inc.
