%CUMSUM Cumulative sum of elements of gpuArray
%   CUMSUM(X)
%   CUMSUM(X,DIM)
%   CUMSUM(___,DIRECTION)
%   
%   The order of the additions within the CUMSUM operation is not defined, so
%   the CUMSUM operation on a gpuArray might not return exactly the same 
%   answer as the CUMSUM operation on the corresponding MATLAB numeric array.
%   In particular, the differences might be significant when X is a signed
%   integer type.
%   
%   Limitations:
%   CUMSUM(___,NANFLAG) is not supported for gpuArray.
%   CUMSUM does not support 64-bit integers.
%   
%   Example:
%    
%       N = 1000;
%       D = gpuArray.colon(1, N);
%       c = cumsum(D);
%       c1 = cumsum(D,1);
%       c2 = cumsum(D,2);
%       isequal(c1, D)             % true
%       isequal(c, c2)             % true
%       isequal(c(end), (1+N)*N/2) % true 
%   
%   See also CUMSUM, GPUARRAY, GPUARRAY/COLON.


%   Copyright 2006-2018 The MathWorks, Inc.
