Skip to content

Commit

Permalink
fix compile error when building w/o eigen3
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Mar 3, 2014
1 parent 0801359 commit ad04382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/ui/GUIPreprocessor.cpp
Expand Up @@ -61,7 +61,7 @@ CPreprocessor* CGUIPreprocessor::create_prunevarsubmean(bool divide_by_std)

CPreprocessor* CGUIPreprocessor::create_pca(bool do_whitening, float64_t threshold)
{
#ifdef HAVE_LAPACK
#if defined(HAVE_LAPACK) && defined(HAVE_EIGEN3)
CPreprocessor* preproc=new CPCA(do_whitening, THRESHOLD, threshold);

if (preproc)
Expand All @@ -71,7 +71,7 @@ CPreprocessor* CGUIPreprocessor::create_pca(bool do_whitening, float64_t thresho

return preproc;
#else //HAVE_LAPACK
SG_ERROR("Could not create preproc PCA - lapack not available at compile time\n")
SG_ERROR("Could not create preproc PCA - lapack or eigen3 not available at compile time\n")
return NULL;
#endif //HAVE_LAPACK
}
Expand Down

0 comments on commit ad04382

Please sign in to comment.