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

Improve LAMG helper classes #1210

Conversation

bernlu
Copy link
Contributor

@bernlu bernlu commented Apr 26, 2024

Various small changes to the LAMG helper classes to improve readability, performance, and allow use in const contexts. Also fixes a few problems such that the template Matrix can now be any of our matrix classes - and now uses explicit template instantiation to verfiy this.

@bernlu bernlu force-pushed the code-style-performance/improve-lamg-helper-classes branch 2 times, most recently from 96e2313 to b6ab0b4 Compare May 2, 2024 12:39
@bernlu bernlu marked this pull request as ready for review May 7, 2024 13:18
networkit/cpp/numerics/LevelHierarchy.cpp Show resolved Hide resolved
networkit/cpp/numerics/SolverLamg.cpp Show resolved Hide resolved
networkit/cpp/numerics/SolverLamg.cpp Show resolved Hide resolved
networkit/cpp/numerics/SolverLamg.cpp Show resolved Hide resolved
networkit/cpp/numerics/SolverLamg.cpp Show resolved Hide resolved
networkit/cpp/numerics/SolverLamg.cpp Show resolved Hide resolved
networkit/cpp/numerics/SolverLamg.cpp Show resolved Hide resolved
networkit/cpp/numerics/SolverLamg.cpp Show resolved Hide resolved
networkit/cpp/numerics/SolverLamg.cpp Show resolved Hide resolved
@bernlu bernlu force-pushed the code-style-performance/improve-lamg-helper-classes branch from 9726b77 to 95d96d3 Compare May 30, 2024 11:39
@bernlu
Copy link
Contributor Author

bernlu commented May 30, 2024

To address the comments on variable naming: I agree that the names are not chosen well, but I do not have enough knowledge of the inner workings of this algorithm to understand what the minRes function is supposed to do to give better names to the variables and function signature.
The code is basically the same as before, just with more const identifiers, and we have tests that confirm that everything still works. I think this PR is finished as is.

@bernlu bernlu requested a review from fabratu May 31, 2024 10:35
@fabratu fabratu merged commit e0f3f35 into networkit:master Jun 13, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants