function D = zeros( varargin )
%DISTRIBUTED.ZEROS Zeros distributed array
%   D = DISTRIBUTED.ZEROS(N) is an N-by-N distributed matrix of zeros.
%   
%   D = DISTRIBUTED.ZEROS(M,N) is an M-by-N distributed matrix of zeros.
%   
%   D = DISTRIBUTED.ZEROS(M,N,K,...) or DISTRIBUTED.ZEROS([M,N,K,...])
%   is an M-by-N-by-K-by-... distributed array of zeros.
%   
%   D = DISTRIBUTED.ZEROS(M,N,K,..., CLASSNAME) or 
%   DISTRIBUTED.ZEROS([M,N,K,...], CLASSNAME) is an M-by-N-by-K-by-... 
%   distributed array of zeros of class specified by CLASSNAME.
%   
%   D = ZEROS(...,'like',P) for a DISTRIBUTED argument P returns a distributed array of zeros 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 = distributed.zeros(N);   % 1000-by-1000 distributed matrix of zeros
%       D2 = distributed.zeros(N,N*2); % 1000-by-2000
%       D3 = distributed.zeros([N,N*2], 'int8'); % underlying class 'int8'
%       D4 = zeros(N,'like',D3) % 1000-by-1000 distributed array with underlying class 'int8'
%   
%   See also ZEROS, DISTRIBUTED, DISTRIBUTED/ONES.


%   Copyright 2008-2020 The MathWorks, Inc.

% static method of distributed

D = distributed.sBuild( @codistributed.zeros, 'zeros', varargin{:} );
end
