Skip to content

Commit

Permalink
changed some variable names in accordance to Google style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Dendukuri committed Jun 5, 2024
1 parent 7c89095 commit a027a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tuvx/linalg/linalg.inl
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ inline std::vector<T> tridiag_solve(TridiagonalMatrix<T> A, std::vector<T> b) {
std::vector<T> x(N);
// forward pass
for (std::size_t i = 1; i < N; i++) {
temp = A.ldiag[i - 1] / A.mdiag[i - 1];
A.mdiag[i] -= temp * A.udiag[i - 1];
temp = A.lower_diagonal_[i - 1] / A.main_diagonal_[i - 1];
A.main_diagonal_[i] -= temp * A.upper_diagonal_[i - 1];
b[i] -= temp * b[i - 1];
}
// back substitution
Expand Down

0 comments on commit a027a1d

Please sign in to comment.