Mercurial > octave-nkf
comparison scripts/general/accumarray.m @ 12294:e6a2008b14b8 release-3-4-x
Add accumdim function to documentation.c
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 29 Jan 2011 21:58:40 -0800 |
parents | b0084095098e |
children | cefd568ea073 8d5f0b41e6b0 |
comparison
equal
deleted
inserted
replaced
12293:d6c70e64882c | 12294:e6a2008b14b8 |
---|---|
60 ## If @var{func} is one of @code{@@sum} (default), @code{@@max}, @code{@@min} | 60 ## If @var{func} is one of @code{@@sum} (default), @code{@@max}, @code{@@min} |
61 ## or @code{@@(x) @{x@}}, an optimized code path is used. | 61 ## or @code{@@(x) @{x@}}, an optimized code path is used. |
62 ## Note that for general reduction function the interpreter overhead can play a | 62 ## Note that for general reduction function the interpreter overhead can play a |
63 ## major part and it may be more efficient to do multiple accumarray calls and | 63 ## major part and it may be more efficient to do multiple accumarray calls and |
64 ## compute the results in a vectorized manner. | 64 ## compute the results in a vectorized manner. |
65 ## @seealso{accumdim} | |
65 ## @end deftypefn | 66 ## @end deftypefn |
66 | 67 |
67 function A = accumarray (subs, vals, sz = [], func = [], fillval = [], issparse = []) | 68 function A = accumarray (subs, vals, sz = [], func = [], fillval = [], issparse = []) |
68 | 69 |
69 if (nargin < 2 || nargin > 6) | 70 if (nargin < 2 || nargin > 6) |