Visitar URL original
Add the type of norm as an input for Power Iteration · Issue #5301 · TheAlgorithms/Python · GitHub
The Wayback Machine - https://web.archive.org/web/20211026021403/https://github.com/TheAlgorithms/Python/issues/5301
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

Add the type of norm as an input for Power Iteration #5301

Open
smturro2 opened this issue Oct 14, 2021 · 0 comments · May be fixed by #5309
Open

Add the type of norm as an input for Power Iteration #5301

smturro2 opened this issue Oct 14, 2021 · 0 comments · May be fixed by #5309

Comments

@smturro2
Copy link

@smturro2 smturro2 commented Oct 14, 2021

Power iteration has better convergence if you normalize the output vector after every iteration. This can be seen in the current code. In some case it is better to normalize by the infinity-norm than the 2-norm. I will add an extra parameter to the function so the user can change the type of norm used. The default value would be 2, so existing external implementations of the code will not be altered and would not require changes.

I'm excited to contribute!

@smturro2 smturro2 linked a pull request that will close this issue Oct 14, 2021
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant