function varargout = idivide(varargin)
%IDIVIDE  Integer division with rounding option.
%   C = IDIVIDE(A,B)
%   C = IDIVIDE(A,B,OPT)
%   
%   Example:
%       a = distributed(int32([-2 2]));
%       b = distributed(int32(3));
%       idivide(a,b) % returns [0 0]
%       idivide(a,b,'floor') % returns [-1 0]
%       idivide(a,b,'ceil') % returns [0 1]
%       idivide(a,b,'round') % returns [-1 1]
%   
%   See also IDIVIDE, DISTRIBUTED, DISTRIBUTED/INT32.


%   Copyright 2014-2019 The MathWorks, Inc.

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