-
Notifications
You must be signed in to change notification settings - Fork 586
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
allow_subnormal keyword for complex_numbers
#3390
Comments
|
Worth noting supporting v2 of the Array API in |
|
I think we're only missing this because nobody has asked for it before! Very happy to accept a PR from you or @honno; otherwise expect a patch from the scipy sprints. Just to confirm, I think the sensible way to interpret allow_subnormal=False for complex numbers is that it applies to the real and the imaginary parts, yes? Should make it easy to document and also implement, we just pass it through to the floats strategies internally. |
I think it's important that the resulting complex number drawn from this strategy has no subnormal real or imaginary part, yes.
I think one would need to look at the min/max magnitude constrained code path and check if this is really all that's necessary? |
|
(self assigning although anyone else feel free to go for it, I'll probably start on this in a few weeks time) |
|
Oh I see, if this is a good sprint task for the US SciPy con coming up then I'm happy to step-back and review! Otherwise yeah will get to it later. |
|
Yeah, if this hasn't been done before the sprints someone will pick it up there.
We already have a non-obvious design to make this work for the allow_infinity and allow_nan arguments (motivated by nice shrinking), so that really is all it takes! |
I would like to be able to exclude subnormals from the floats drawn (or more specifically the resulting imaginary and real parts of the constructed complex number) in the
complex_numbersstrategy, but that's currently not possible.Has this been considered already?
The text was updated successfully, but these errors were encountered: