function [varargout] = cumtrapz( varargin )
%CUMTRAPZ Cumulative trapezoidal numerical integration of distributed array
%   Z = CUMTRAPZ(Y)
%   Z = CUMTRAPZ(X,Y)
%   Z = CUMTRAPZ(X,Y,DIM)
%   
%   Example:
%       N = 10;
%       Y = distributed.ones(N);
%       cumtrapz(Y,1)
%   
%   See also CUMTRAPZ, DISTRIBUTED, DISTRIBUTED/TRAPZ.


%   Copyright 2022 The MathWorks, Inc.

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