From e4f7aa9af9365436cfe1a63da2c9b46f39f5207e Mon Sep 17 00:00:00 2001 From: Aditya Dendukuri Date: Wed, 5 Jun 2024 11:04:53 -0600 Subject: [PATCH] Update include/tuvx/linalg/linalg.inl Co-authored-by: Kyle Shores --- include/tuvx/linalg/linalg.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tuvx/linalg/linalg.inl b/include/tuvx/linalg/linalg.inl index 81ef9433..bab32b7d 100644 --- a/include/tuvx/linalg/linalg.inl +++ b/include/tuvx/linalg/linalg.inl @@ -23,7 +23,7 @@ inline std::vector tridiag_solve(trid_mat A, std::vector b) { std::size_t N = b.size(); std::vector x(N); // forward pass - for (int i = 1; i < N; i++) { + 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]; b[i] -= temp * b[i - 1];