-
-
Notifications
You must be signed in to change notification settings - Fork 11k
numpy.MachAr does not allow for denormals #5755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
the documentation says xmin is to get the real smallest value you can use |
note though that if you're C'library is compiled with a different compiler than numpy ´np.nextafter´ might give you the wrong result. subnormal support is compiler dependent, e.g. intels compiler flushes them to zero by default |
Maybe this is what is meant by 'usable' in 'the smallest [in magnitude] usable floating value'? |
Given the large run time penalty from subnormals, I don't think we should On Wed, Apr 8, 2015 at 11:26 AM, argriffing notifications@github.com
|
@ewmoore I understand your concern, but at the moment the docs appear out of sync with code, and that doesn't seem right. I think we need to make it clear what we mean by For example does the term |
|
Using numpy 1.8.2 on python 2.7.9, the return value of
MachAr.xmin
does not take into consideration of denormals, getting a value ofe-308
(see below), but much lower values exist for floats in the form of denormals.The text was updated successfully, but these errors were encountered: