% -*- texinfo -*- % @deftypefn {Function File} {@var{y} =} gradcumsum (@var{x}) % @deftypefnx {Function File} {@var{y} =} gradcumsum (@var{x}, @var{dim}) % overloads built-in function @code{cumsum} for a gradient @var{x} % @end deftypefn % @seealso{cumsum}