Skip to content
Prev 23253 / 63424 Next

max.col oddity

Duncan--
 Ah, good point, clearly setting the tolerance to 0 is bad in that
case. Also, my code has another problem when the max is negative -- it
will set a negative tolerance! One good fix for both problems is the
following: set the initial value of "large" to the first value in the
row instead of 0.0, then keep the "fmax2(a,large)" approach from my
patch, but at the end, take the absolute value of large. That will
always follow the current docs -- using the largest value, not the
largest absolute value in the row, for comparison.

  You proposal of changing the docs and just fixing the infinite
problem sounds like a reasonable approach too, especially if people
are already depending on this behavior (??), although I still think
it's s a little weird that comparing "(-1e10, 2, 3)" will say that 2
or 3 could be the max.
 Thanks,
--JRZ

        
On 12/16/06, Duncan Murdoch <murdoch at stats.uwo.ca> wrote: