Skip to content

Commit

Permalink
add ifdef HAVE_LAPACK for NewtonSVM
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Apr 3, 2012
1 parent b1b17cb commit 21ae0ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shogun/classifier/svm/NewtonSVM.h
Expand Up @@ -18,6 +18,7 @@

namespace shogun
{
#ifdef HAVE_LAPACK
/** @brief class NewtonSVM */
class CNewtonSVM : public CLinearMachine
{
Expand Down Expand Up @@ -98,6 +99,7 @@ class CNewtonSVM : public CLinearMachine
*/
virtual bool train_machine(CFeatures* data=NULL);

private:
void obj_fun_linear(float64_t* weights, float64_t* out, float64_t* obj,
int32_t* sv, int32_t* numsv, float64_t* grad);

Expand All @@ -113,5 +115,6 @@ class CNewtonSVM : public CLinearMachine
/** if bias is used */
bool use_bias;
};
#endif //HAVE_LAPACK
}
#endif
#endif //_NEWTONSVM_H___

0 comments on commit 21ae0ec

Please sign in to comment.