Skip to content
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

Drotmg incorrect result #365

Closed
btracey opened this issue May 1, 2014 · 1 comment
Closed

Drotmg incorrect result #365

btracey opened this issue May 1, 2014 · 1 comment
Milestone

Comments

@btracey
Copy link
Contributor

btracey commented May 1, 2014

In rotmg.c, lines 146 and 179 should say
"else if(dflag == ONE)"
rather than just "else"

The first pass through the code, if the flag is zero, it sets d11, d12, and sets dflag to -1. If it needs to go through the while loop a second time, dflag is now -1, (which is not 1), and so it changes dh21 to -1 and dh12 to -1. This should not happen. ATLAS has this flag check, as does the accelerate framework on OSX.

@wernsaar
Copy link
Contributor

wernsaar commented May 2, 2014

On 01.05.2014 19:04, Brendan Tracey wrote:

In rotmg.c, lines 146 and 179 should say
"else if(dflag == ONE)"
rather than just "else"

The first pass through the code, if the flag is zero, it sets d11, d12, and sets dflag to -1. If it needs to go through the while loop a second time, dflag is now -1, (which is not 1), and so it changes dh21 to -1 and dh12 to -1. This should not happen. ATLAS has this flag check, as does the accelerate framework on OSX.


Reply to this email directly or view it on GitHub:
#365
Hi,

thank you very much for the bug report.
The bugs are fixed and rotmg.c is pushed
to the develop branch.

Best Regards

Werner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants