I’m interested in finding for a particular Numpy type (e.g. np.int64, np.uint32, np.float32, etc.) what the range of all possible valid values is (e.g. np.int32 can store numbers up to 2**31-1). Of course, I guess one can theoretically figure this out for each type, but is there a way to do this at run time to ensure more portable code?
I’m interested in finding for a particular Numpy type (e.g. np.int64 , np.uint32 ,
Share
Quoting from a numpy discussion list:
Link here.