Am Montag, 10. Dezember 2007 17:23:07 schrieb Matthieu Brucher:
I had the same problem sooner today, someone told me the answer : use
numpy.info object ;)
I saw this shortly after posting (what a coincidence), and I planned to reply
to myself, but my mail did not make it to the list very
I had the same problem sooner today, someone told me the answer : use
numpy.info object ;)
Matthieu
2007/12/10, Hans Meine [EMAIL PROTECTED]:
Hi!
Is there a way to query the minimum and maximum values of the numpy
datatypes?
E.g. numpy.uint8.max == 255, numpy.uint8.min == 0 (these
Hans Meine wrote:
Hi!
Is there a way to query the minimum and maximum values of the numpy datatypes?
numpy.iinfo (notice the two i's) (integer information)
numpy.finfo (floating point information)
Example:
numpy.iinfo(numpy.uint8).max
numpy.iinfo(numpy.int16).min
You pass the datatype