Skip to content

Commit

Permalink
Fixed compilation of data generator in case of no lapack available
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Aug 22, 2012
1 parent d6b3a7d commit cf43532
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/shogun/features/DataGenerator.cpp
Expand Up @@ -77,7 +77,7 @@ SGMatrix<float64_t> CDataGenerator::generate_sym_mix_gauss(index_t m,

return result;
}

#ifdef HAVE_LAPACK
SGMatrix<float64_t> CDataGenerator::generate_gaussians(index_t m, index_t n, index_t dim)
{
/* evtl. allocate space */
Expand Down Expand Up @@ -109,4 +109,4 @@ SGMatrix<float64_t> CDataGenerator::generate_gaussians(index_t m, index_t n, ind

return result;
}

#endif /* HAVE_LAPACK */
6 changes: 4 additions & 2 deletions src/shogun/features/DataGenerator.h
Expand Up @@ -9,7 +9,7 @@

#ifndef __DATAGENERATOR_H_
#define __DATAGENERATOR_H_

#include <shogun/lib/config.h>
#include <shogun/base/SGObject.h>
#include <shogun/lib/SGMatrix.h>

Expand Down Expand Up @@ -68,6 +68,7 @@ class CDataGenerator: public CSGObject
float64_t d, float64_t angle,
SGMatrix<float64_t> target=SGMatrix<float64_t>());

#ifdef HAVE_LAPACK
/** Produces samples of gaussians
* The functions produces m number of samples of each gaussians (n number) with
* the given dimension.
Expand All @@ -79,7 +80,8 @@ class CDataGenerator: public CSGObject
* of the first gaussian, m number of second etc.
*/
static SGMatrix<float64_t> generate_gaussians(index_t m, index_t n, index_t dim);

#endif /* HAVE_LAPACK */

inline virtual const char* get_name() const { return "DataGenerator"; }

private:
Expand Down

0 comments on commit cf43532

Please sign in to comment.