diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-01-25 14:54:39 +0100 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-01-25 14:54:39 +0100 |
commit | 934b8a1304f4d210520c1b158c2ee3da78062532 (patch) | |
tree | c3bf06553c525a2f7794a25ecc9686fbc314b8b7 /test/conjugate_gradient.cpp | |
parent | ec8a387972650cda5ad32da5f89659631ad3008a (diff) |
Avoid `I` as an identifier, since it may clash with the C-header complex.h
Diffstat (limited to 'test/conjugate_gradient.cpp')
-rw-r--r-- | test/conjugate_gradient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/conjugate_gradient.cpp b/test/conjugate_gradient.cpp index 47a4ca707..b076a126b 100644 --- a/test/conjugate_gradient.cpp +++ b/test/conjugate_gradient.cpp @@ -10,9 +10,9 @@ #include "sparse_solver.h" #include <Eigen/IterativeLinearSolvers> -template<typename T, typename I> void test_conjugate_gradient_T() +template<typename T, typename I_> void test_conjugate_gradient_T() { - typedef SparseMatrix<T,0,I> SparseMatrixType; + typedef SparseMatrix<T,0,I_> SparseMatrixType; ConjugateGradient<SparseMatrixType, Lower > cg_colmajor_lower_diag; ConjugateGradient<SparseMatrixType, Upper > cg_colmajor_upper_diag; ConjugateGradient<SparseMatrixType, Lower|Upper> cg_colmajor_loup_diag; |