Skip to content

Commit

Permalink
init with defaults to get error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Sep 5, 2012
1 parent bacd2cc commit 2a85752
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -16,7 +16,7 @@ using namespace shogun;

int main(int argc, char** argv)
{
init_shogun();
init_shogun_with_defaults();

int N = 100;
int dim = 3;
Expand Down
4 changes: 3 additions & 1 deletion src/shogun/converter/LocalityPreservingProjections.cpp
Expand Up @@ -86,7 +86,9 @@ CDenseFeatures<float64_t>* CLocalityPreservingProjections::construct_embedding(C
SG_FREE(lhs_M);
SG_FREE(rhs_M);
SG_FREE(evals);
if (info!=0) SG_ERROR("Failed to solve eigenproblem (%d)\n",info);

if (info!=0)
SG_ERROR("Failed to solve eigenproblem (%d)\n",info);

cblas_dgemm(CblasColMajor,CblasTrans,CblasNoTrans,N,m_target_dim,dim,1.0,feature_matrix.matrix,dim,evectors,dim,0.0,XTM,N);
SG_FREE(evectors);
Expand Down

0 comments on commit 2a85752

Please sign in to comment.