Skip to content

Commit

Permalink
Fixed LLE/HLLE/LTSA crashers
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed May 8, 2012
1 parent 9c81f4e commit 67b73a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shogun/converter/LocallyLinearEmbedding.cpp
Expand Up @@ -235,8 +235,7 @@ CFeatures* CLocallyLinearEmbedding::apply(CFeatures* features)
SG_DEBUG("Neighbors finding took %fs\n",time->cur_time_diff());

// init W (weight) matrix
float64_t* W_matrix = distance_matrix.matrix;
memset(W_matrix,0,sizeof(float64_t)*N*N);
float64_t* W_matrix = SG_CALLOC(float64_t, N*N);

// construct weight matrix
SG_DEBUG("Constructing weight matrix\n");
Expand Down

0 comments on commit 67b73a2

Please sign in to comment.