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