function D = true( varargin )
%DISTRIBUTED.TRUE True distributed array
%   D = DISTRIBUTED.TRUE(N) is an N-by-N distributed matrix 
%   of logical ones.
%   
%   D = DISTRIBUTED.TRUE(M,N) is an M-by-N distributed matrix
%   of logical ones.
%   
%   D = DISTRIBUTED.TRUE(M,N,K, ...) or DISTRIBUTED.TRUE([M,N,K, ...])
%   is an M-by-N-by-K-by-... distributed array of logical ones.
%   
%   D = TRUE(...,'like',P) for a DISTRIBUTED argument P returns a distributed array of logical ones
%   of the requested size. P must be of logical underlying class.
%   
%   Examples:
%       N  = 1000;
%       D1 = distributed.true(N); % 1000-by-1000 true logical distributed array
%       D2 = distributed.true(N, N*2); % 1000-by-2000
%       D3 = distributed.true([N, N*2]); % 1000-by-2000
%       D4 = true(N,'like',D3); % 1000-by-1000 true distributed array
%   
%   See also TRUE, DISTRIBUTED, DISTRIBUTED/FALSE, DISTRIBUTED/ONES.


%   Copyright 2008-2020 The MathWorks, Inc.

% static method of distributed

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