aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/conjugate_gradient.cpp
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-01-25 14:54:39 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-01-25 14:54:39 +0100
commit934b8a1304f4d210520c1b158c2ee3da78062532 (patch)
treec3bf06553c525a2f7794a25ecc9686fbc314b8b7 /test/conjugate_gradient.cpp
parentec8a387972650cda5ad32da5f89659631ad3008a (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.cpp4
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;