function obj = all(obj, varargin)
%ALL True if all elements of a vector are nonzero.
%   A = ALL(X)
%   A = ALL(X,DIM)
%   A = ALL(X,VECDIM)
%   A = ALL(X,'all')
%   
%   The output A has the same dimension labels, if any, as the input X.
%
%   See also ALL, DLARRAY.

%   Copyright 2019 The MathWorks, Inc.
    
[fdx, xdata, args] = helperReduction(obj, varargin{:});

xdata = all(xdata, args{:});

obj.FormattedData = insertData(fdx, xdata);
obj = dropTrailingODims(obj);
end
