diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-10-16 17:44:09 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-10-16 17:44:09 +0000 |
commit | ff1c6632c9313027a58f13797dc58127bcaededf (patch) | |
tree | ff8dcbbe7eced2968a02a83a498c25e340d9c852 /numpy/lib/getlimits.py | |
parent | 533fba23cb556658fa8cc465c3385426ec3a8521 (diff) | |
download | numpy-ff1c6632c9313027a58f13797dc58127bcaededf.tar.gz |
Fix finfo eps and huge to be array scalars of the appropriate type. And use finfo interface instead of MachAr.
Diffstat (limited to 'numpy/lib/getlimits.py')
-rw-r--r-- | numpy/lib/getlimits.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/getlimits.py b/numpy/lib/getlimits.py index 297ef9b36..d03f000c1 100644 --- a/numpy/lib/getlimits.py +++ b/numpy/lib/getlimits.py @@ -80,9 +80,9 @@ class finfo(object): setattr(self,word,getattr(machar, word)) for word in ['tiny','resolution','epsneg']: setattr(self,word,getattr(machar, word).squeeze()) - self.max = machar.huge.squeeze() + self.max = machar.huge.flat[0] self.min = -self.max - self.eps = machar.epsilon.squeeze() + self.eps = machar.eps.flat[0] self.nexp = machar.iexp self.nmant = machar.it self.machar = machar |