Mercurial > octave
diff scripts/general/accumarray.m @ 21751:b571fc85953f
maint: Use two spaces after period to indicate sentence break.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 19 May 2016 18:48:52 -0700 |
parents | ecce63c99c3f |
children | ffad2baa90f7 |
line wrap: on
line diff
--- a/scripts/general/accumarray.m Thu May 19 19:42:57 2016 -0400 +++ b/scripts/general/accumarray.m Thu May 19 18:48:52 2016 -0700 @@ -164,8 +164,8 @@ if (issparse) - ## Sparse case. Avoid linearizing the subscripts, because it could - ## overflow. + ## Sparse case. + ## Avoid linearizing the subscripts, because it could overflow. if (fillval != 0) error ("accumarray: FILLVAL must be zero in the sparse case"); @@ -191,7 +191,7 @@ if (! (isempty (func) || func == @sum)) - ## Reduce values. This is not needed if we're about to sum them, + ## Reduce values. This is not needed if we're about to sum them, ## because "sparse" can do that. ## Sort indices. @@ -324,7 +324,7 @@ endif else - ## The general case. Reduce values. + ## The general case. Reduce values. n = rows (subs); if (numel (vals) == 1) vals = vals(ones (1, n), 1); @@ -340,7 +340,7 @@ jdx = [jdx; n]; endif vals = mat2cell (vals(idx), diff ([0; jdx])); - ## Optimize the case when function is @(x) {x}, i.e. we just want + ## Optimize the case when function is @(x) {x}, i.e., we just want ## to collect the values to cells. persistent simple_cell_str = func2str (@(x) {x}); if (! strcmp (func2str (func), simple_cell_str))