Skip to content

Commit

Permalink
Got rid of memory error at DiffusionMaps
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Oct 7, 2011
1 parent 5f2a5c8 commit 8d47d14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shogun/preprocessor/DiffusionMaps.cpp
Expand Up @@ -175,7 +175,8 @@ SGMatrix<float64_t> CDiffusionMaps::apply_to_feature_matrix(CFeatures* features)
wrap_dgesvd('O','N',N,N,kernel_matrix.matrix,N,s_values,NULL,1,NULL,1,&info);
*/

float64_t* new_feature_matrix = kkt_matrix;//SG_MALLOC(float64_t, N*target_dim);
SG_FREE(kkt_matrix);
float64_t* new_feature_matrix = SG_MALLOC(float64_t, N*target_dim);

for (i=0; i<target_dim; i++)
{
Expand Down

0 comments on commit 8d47d14

Please sign in to comment.