Skip to content

Commit

Permalink
fixed compile error when eigen3 not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
SunilMahendrakar committed Mar 15, 2014
1 parent 55912da commit 936bfc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -36,6 +36,7 @@ CLogDetEstimator::CLogDetEstimator()
init();
}

#ifdef HAVE_EIGEN3
CLogDetEstimator::CLogDetEstimator(SGSparseMatrix<float64_t> sparse_mat)
: CSGObject()
{
Expand Down Expand Up @@ -68,6 +69,7 @@ CLogDetEstimator::CLogDetEstimator(SGSparseMatrix<float64_t> sparse_mat)
m_computation_engine->get_name(), m_operator_log->get_name(),
m_trace_sampler->get_name());
}
#endif //HAVE_EIGEN3

CLogDetEstimator::CLogDetEstimator(CTraceSampler* trace_sampler,
COperatorFunction<float64_t>* operator_log,
Expand Down
Expand Up @@ -37,6 +37,7 @@ class CLogDetEstimator : public CSGObject

/**
* constructor for SGSparseMatrix<float64_t>
* available only when Eigen3 library installed.
* Using the default methods: CSerialComputationEngine,CLanczosEigenSolver,
* CLogRationalApproximationCGM with 1E-5 accuracy, CCGMShiftedFamilySolver,
* when COLPACK package is installed CProbingsampler with power=1,
Expand Down

0 comments on commit 936bfc2

Please sign in to comment.