Skip to content

Commit

Permalink
Made test depend on availability of Eigen library
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudomanifold committed Aug 24, 2017
1 parent 6f2904c commit 3a0cd90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_principal_component_analysis.cc
@@ -1,5 +1,7 @@
#include <tests/Base.hh>

#include <aleph/config/Eigen.hh>

#include <aleph/math/PrincipalComponentAnalysis.hh>

#include <algorithm>
Expand Down Expand Up @@ -43,6 +45,8 @@ template <class T> void testSimpleMatrix()

int main(int, char**)
{
#ifdef ALEPH_WITH_EIGEN
testSimpleMatrix<float> ();
testSimpleMatrix<double>();
#endif
}

0 comments on commit 3a0cd90

Please sign in to comment.