Skip to content

Commit

Permalink
added comments/documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jul 4, 2012
1 parent caa554c commit 8330886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shogun/lib/SGMatrix.cpp
Expand Up @@ -11,6 +11,7 @@ template <class T>
void SGMatrix<T>::transpose_matrix(
T*& matrix, int32_t& num_feat, int32_t& num_vec)
{
/* this should be done in-place! Heiko */
T* transposed=SG_MALLOC(T, num_vec*num_feat);
for (int32_t i=0; i<num_vec; i++)
{
Expand Down
1 change: 1 addition & 0 deletions src/shogun/lib/SGMatrix.h
Expand Up @@ -243,6 +243,7 @@ template<class T> class SGMatrix : public SGReferencedData
return colsums;
}

/** Centers the matrix, i.e. removes column/row mean from columns/rows */
void center()
{
center_matrix(matrix, num_rows, num_cols);
Expand Down

0 comments on commit 8330886

Please sign in to comment.