%CUMMAX Cumulative maximum of elements of gpuArray
%   CUMMAX(X)
%   CUMMAX(X,DIM)
%   CUMMAX(___,DIRECTION)
%   
%   Limitations:
%   CUMMAX(___,NANFLAG) is not supported for gpuArray.
%   CUMMAX does not support 64-bit integers.
%   
%   Example:
%    
%       N = 1000;
%       D = cos(gpuArray.linspace(-pi, pi));
%       c = cummax(D);
%       c1 = cummax(D,1);
%       c2 = cummax(D,2);
%       isequal(c1, D)     % true
%       isequal(c, c2)     % true
%   
%   See also CUMMAX, GPUARRAY, GPUARRAY/LINSPACE.


%   Copyright 2014-2018 The MathWorks, Inc.
