Mercurial > hg > octave-lojdl
changeset 14458:c288881669b9
doc: Mention accumarray trick in sparse docstring
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Mon, 12 Mar 2012 19:08:06 -0400 |
parents | 008a29999c3d |
children | a22a41ab6824 |
files | src/sparse.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sparse.cc +++ b/src/sparse.cc @@ -78,7 +78,8 @@ \n\ @strong{Note}: if multiple values are specified with the same\n\ @var{i}, @var{j} indices, the corresponding values in @var{s} will\n\ -be added.\n\ +be added. See @code{accumarray} for an example of how to produce different\n\ +behavior, such as taking the minimum instead.\n\ \n\ The following are all equivalent:\n\ \n\ @@ -98,7 +99,7 @@ \n\ If any of @var{sv}, @var{i} or @var{j} are scalars, they are expanded\n\ to have a common size.\n\ -@seealso{full}\n\ +@seealso{full, accumarray}\n\ @end deftypefn") { octave_value retval;