1 Apr 2005 12:07
Re: bug in imshow with all negative values
Stefan van der Walt <stefan <at> sun.ac.za>
2005-04-01 10:07:29 GMT
2005-04-01 10:07:29 GMT
On Thu, Mar 31, 2005 at 11:07:08AM -0500, John W. Eaton wrote: > Yes, the patch to imshow looks OK to me. But rather than introducing > a function that can only return the max value, how about something > like this: > > s = numeric_limits (class (pi)) > > => s.epsilon = 2.2204e-16 > s.is_exact = false > s.is_integer = false > s.is_signed = true > s.min = 2.2251e-308 > s.max = 1.7977e+308 > > s = numeric_limits (class (uint8 (1))) > > => s.epsilon = 0 > s.is_exact = true > s.is_integer = true > s.is_signed = false > s.min = 0 > s.max = 255 > > and perhaps include all the fields that are available in the C++ > numeric_limits class defined in the <limits> header? > > This function would return an error if given a class that was not a > numeric type. That'd be perfect!(Continue reading)
RSS Feed