Skip to content

Commit

Permalink
Add HAVE_LAPACK checks to Gaussian distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Apr 16, 2011
1 parent 6e6999c commit ebf4cf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/libshogun/distributions/Gaussian.cpp
Expand Up @@ -7,6 +7,9 @@
* Written (W) 2011 Alesis Novik
* Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
*/
#include "lib/config.h"

#ifdef HAVE_LAPACK

#include "distributions/Gaussian.h"
#include "lib/Mathematics.h"
Expand Down Expand Up @@ -145,3 +148,4 @@ void CGaussian::register_params()
m_parameters->add_vector(&m_mean, &m_mean_length, "m_mean", "Mean.");
m_parameters->add(&m_constant, "m_constant", "Constant part.");
}
#endif
7 changes: 6 additions & 1 deletion src/libshogun/distributions/Gaussian.h
Expand Up @@ -11,6 +11,10 @@
#ifndef _GAUSSIAN_H__
#define _GAUSSIAN_H__

#include "lib/config.h"

#ifdef HAVE_LAPACK

#include "distributions/Distribution.h"
#include "features/DotFeatures.h"
#include "lib/common.h"
Expand Down Expand Up @@ -172,4 +176,5 @@ class CGaussian : public CDistribution
int32_t m_mean_length;
};
}
#endif
#endif //HAVE_LAPACK
#endif //_GAUSSIAN_H__

0 comments on commit ebf4cf6

Please sign in to comment.