-
Notifications
You must be signed in to change notification settings - Fork 4
Simplify tridiagonal solver constructor #152
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #152 +/- ##
==========================================
+ Coverage 88.67% 88.86% +0.18%
==========================================
Files 87 87
Lines 4982 4931 -51
==========================================
- Hits 4418 4382 -36
+ Misses 564 549 -15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| /* ---------------------------------------------------------- */ | ||
| /* Based on Cholesky Decomposition: A = L * D * L^T | ||
| * | ||
| * This function performs Cholesky decomposition on a | ||
| * symmetric tridiagonal matrix, factorizing it into | ||
| * a lower triangular matrix (L) and a diagonal matrix (D). | ||
| * | ||
| * By storing the decomposition, this approach enhances | ||
| * efficiency for repeated solutions, as matrix factorizations | ||
| * need not be recalculated each time. | ||
| * ---------------------------------------------------------- */ | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing all the documentation seems like a bad idea
| /* | ||
| * This algorithm implements the Tridiagonal Matrix Algorithm (TDMA) for solving | ||
| * symmetric tridiagonal systems of equations, specifically designed to handle | ||
| * cyclic boundary conditions. The implementation is based on principles outlined | ||
| * in the following resource: | ||
| * https://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm. | ||
| */ | ||
|
|
||
| template <typename T> | ||
| void SymmetricTridiagonalSolver<T>::solveSymmetricCyclicTridiagonal(T* x, T* u, T* scratch) | ||
| { | ||
| /* ---------------------------------------------------------- */ | ||
| /* Cholesky Decomposition: A = L * D * L^T | ||
| * This step factorizes the tridiagonal matrix into lower | ||
| * triangular (L) and diagonal (D) matrices. While this | ||
| * approach may be slightly less stable, it can offer improved | ||
| * performance for repeated solves due to the factorization | ||
| * being stored internally. | ||
| * ---------------------------------------------------------- */ | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs
Merge Request - GuideLine Checklist
Guideline to check code before resolve WIP and approval, respectively.
As many checkboxes as possible should be ticked.
Checks by code author:
Always to be checked:
If functions were changed or functionality was added:
If new functionality was added:
If new third party software is used:
If new mathematical methods or epidemiological terms are used:
Checks by code reviewer(s):