diff --git a/src/shogun/mathematics/logdet/IterativeLinearSolver.cpp b/src/shogun/mathematics/logdet/IterativeLinearSolver.cpp index 52823b57e2f..c937a37293b 100644 --- a/src/shogun/mathematics/logdet/IterativeLinearSolver.cpp +++ b/src/shogun/mathematics/logdet/IterativeLinearSolver.cpp @@ -8,9 +8,6 @@ */ #include - -#ifdef HAVE_EIGEN3 - #include #include @@ -49,20 +46,6 @@ CIterativeLinearSolver::~CIterativeLinearSolver() SG_SGCDEBUG("%s destroyed (%p)\n", this->get_name(), this); } -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; template class CIterativeLinearSolver; -template class CIterativeLinearSolver; -template class CIterativeLinearSolver; template class CIterativeLinearSolver; } -#endif // HAVE_EIGEN3 diff --git a/src/shogun/mathematics/logdet/IterativeLinearSolver.h b/src/shogun/mathematics/logdet/IterativeLinearSolver.h index 7fb8b4463c9..d4875288d40 100644 --- a/src/shogun/mathematics/logdet/IterativeLinearSolver.h +++ b/src/shogun/mathematics/logdet/IterativeLinearSolver.h @@ -11,8 +11,6 @@ #define ITERATIVE_LINEAR_SOLVER_H_ #include - -#ifdef HAVE_EIGEN3 #include namespace shogun @@ -102,5 +100,4 @@ template class CIterativeLinearSolver : public CLinearSolve } -#endif // HAVE_EIGEN3 #endif // ITERATIVE_LINEAR_SOLVER_H_ diff --git a/src/shogun/mathematics/logdet/IterativeShiftedLinearFamilySolver.cpp b/src/shogun/mathematics/logdet/IterativeShiftedLinearFamilySolver.cpp index 5cf74f542c2..6bc8d6c08b5 100644 --- a/src/shogun/mathematics/logdet/IterativeShiftedLinearFamilySolver.cpp +++ b/src/shogun/mathematics/logdet/IterativeShiftedLinearFamilySolver.cpp @@ -90,6 +90,6 @@ void CIterativeShiftedLinearFamilySolver::compute_alpha_sh( } } -template class CIterativeShiftedLinearFamilySolver; +template class CIterativeShiftedLinearFamilySolver; template class CIterativeShiftedLinearFamilySolver; } diff --git a/src/shogun/mathematics/logdet/IterativeShiftedLinearFamilySolver.h b/src/shogun/mathematics/logdet/IterativeShiftedLinearFamilySolver.h index ba86143da05..6ea97542982 100644 --- a/src/shogun/mathematics/logdet/IterativeShiftedLinearFamilySolver.h +++ b/src/shogun/mathematics/logdet/IterativeShiftedLinearFamilySolver.h @@ -31,7 +31,7 @@ template class CLinearOperator; * Reference: Beat Jegerlehner, Krylov space solvers for shifted linear * systems, 1996. */ -template class CIterativeShiftedLinearFamilySolver : public CIterativeLinearSolver +template class CIterativeShiftedLinearFamilySolver : public CIterativeLinearSolver { public: diff --git a/src/shogun/mathematics/logdet/LinearSolver.h b/src/shogun/mathematics/logdet/LinearSolver.h index adc1dd07652..f2bae6dd5cd 100644 --- a/src/shogun/mathematics/logdet/LinearSolver.h +++ b/src/shogun/mathematics/logdet/LinearSolver.h @@ -54,19 +54,7 @@ template class CLinearSolver : public CSGObject }; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; -template class CLinearSolver; template class CLinearSolver; -template class CLinearSolver; template class CLinearSolver; template class CLinearSolver;