function Z = all(varargin)
%ALL True if all elements of a codistributed vector are nonzero
%   A = ALL(D)
%   A = ALL(D,DIM)
%   
%   Example:
%   spmd
%       N = 1000;
%       D = codistributed.colon(1,N)
%       t = all(D)
%   end
%   
%   returns t the codistributed logical scalar with value true.
%   
%   See also ALL, CODISTRIBUTED, CODISTRIBUTED/COLON, CODISTRIBUTED/ZEROS.


%   Copyright 2006-2020 The MathWorks, Inc.

Z = codistributed.pReductionOpAlongDim(@all,varargin{:});
