-
Notifications
You must be signed in to change notification settings - Fork 218
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
Fix complex math abs and abs2 issues #3387
Fix complex math abs and abs2 issues #3387
Conversation
@BeyondEspresso PLease check if this solves you issues |
For documentation, the PR created following compile error
|
So I made a mistake in the fixed Abs implementation. Not sure what is it from the first look, will investigate tomorrow morning. Thanks for testing @BeyondEspresso , sorry it did not work as i imagined it would. |
0ca8a16
to
45efdbe
Compare
@BeyondEspresso there was a tricky error in my original implementation. It is hopefully fixed (at least my small test compiled, but of course you have a more complex use case) now with the current state of this branch |
@sbastrakov I ran my test case with your new branch and the results of the old master and your PR are virtually the same: |
The issues were introduced in #3245 and went unnoriced until #3379 .
Fix wrong formula in
Abs
implementation.Make return types of
Abs
andAbs2
real, as they were before that change.Fixes #3379 .