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

Fix loop condition in FLAE-newton implementation #102

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

petrinm
Copy link
Contributor

@petrinm petrinm commented Nov 6, 2023

The current implementation has implemented wrong the condition for checking whether the eigen value search using the Newton-method has converged. The implementation calculates the convergence criteria wrong at the first iteration and then always performs 31 iterations due to the 'OR' in the while-condition. According to the original FLAE paper, the algorithm should converge in less than 4 iterations so fixing this is should speed up the implementation a bit.
There seems to be similar bug also in the original MATLAB implementation.

@Mayitzin Mayitzin merged commit 084ed62 into Mayitzin:master Nov 29, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants