function varargout = rank(varargin)
%RANK Matrix rank for distributed matrices
%   R = RANK(A)
%   R = RANK(A,TOL)
%   
%   See also RANK, DISTRIBUTED.


%   Copyright 2021 The MathWorks, Inc.

[varargout{1:max(nargout, 1)}] = distributedutil.distributedSpmdWrapper( @rank, varargin{:} );
