Skip to content

Commit

Permalink
initialize empty SGVector/matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 11, 2012
1 parent 011dec1 commit 4f337da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shogun/preprocessor/PCA.cpp
Expand Up @@ -32,9 +32,9 @@ CPCA::CPCA(bool do_whitening_, EPCAMode mode_, float64_t thresh_)

void CPCA::init()
{
m_transformation_matrix = SGMatrix<float64_t>(NULL,0,0);
m_mean_vector = SGVector<float64_t>(NULL,0);
m_eigenvalues_vector = SGVector<float64_t>(NULL,0);
m_transformation_matrix = SGMatrix<float64_t>();
m_mean_vector = SGVector<float64_t>();
m_eigenvalues_vector = SGVector<float64_t>();

SG_ADD(&m_transformation_matrix, "transformation matrix",
"Transformation matrix (Eigenvectors of covariance matrix).",
Expand Down

0 comments on commit 4f337da

Please sign in to comment.