Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed m_eigenvalues handling in MDS
  • Loading branch information
lisitsyn committed Aug 20, 2011
1 parent e8bff92 commit 8d8cfd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/shogun/preprocessor/MultidimensionalScaling.cpp
Expand Up @@ -59,7 +59,7 @@ struct TRIANGULATION_THREAD_PARAM

CMultidimensionalScaling::CMultidimensionalScaling() : CDimensionReductionPreprocessor()
{
m_eigenvalues = SGVector<float64_t>(NULL,0,true);
m_eigenvalues = SGVector<float64_t>(NULL,0,false);
init();
}

Expand Down
4 changes: 1 addition & 3 deletions src/shogun/preprocessor/MultidimensionalScaling.h
Expand Up @@ -103,9 +103,7 @@ class CMultidimensionalScaling: public CDimensionReductionPreprocessor
*/
SGVector<float64_t> get_eigenvalues() const
{
SGVector<float64_t> eigs(m_eigenvalues);
eigs.do_free=false;
return eigs;
return m_eigenvalues;
}

/** set number of landmarks⋅
Expand Down

0 comments on commit 8d8cfd8

Please sign in to comment.