The range function does not correctly hande the DIM argument
Eero Häkkinen
eero17 at bigfoot.com
Fri May 8 03:24:50 CDT 2009
The range function has know been reimplemented but this problem still exists.
The DIM argument should be passed as the third argument to the min and the max
functions and not as the second argument.
The attached patch fixes the problem for real.
Eero Häkkinen wrote on 2009-04-29:
> The range function should work along dimension DIM if an optional DIM
> argument is supplied. However, it does not work along the dimension DIM nor
> any other dimension. This caused by the fact that the range function passes
> the optional DIM argument as the second argument to the min and the max
> functions whereas it should be passed as the third argument.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: range.patch
Type: text/x-diff
Size: 356 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090508/bd8c6cf7/attachment.bin
More information about the Bug-octave
mailing list