function tf = isscalar( obj )
%ISSCALAR True if input is a distributed scalar.
%   TF = ISSCALAR(S)
%   
%   Example:
%       S = distributed.zeros(1);
%       tf = isscalar(S)
%   
%   returns tf = true.
%   
%   See also ISSCALAR, DISTRIBUTED, DISTRIBUTED/ZEROS.


%   Copyright 2016 The MathWorks, Inc.

tf = prod( obj.Size ) == 1;
end