# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1331593686 14400 # Node ID c288881669b9e3e1a6a85f6f540f79e37ee52e90 # Parent 008a29999c3d39490b80fd17dc45ae1a2fc6cf02 doc: Mention accumarray trick in sparse docstring diff --git a/src/sparse.cc b/src/sparse.cc --- 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;