Skip to content

Commit

Permalink
add get_column_vector function to SGMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jan 27, 2012
1 parent b240678 commit 02a1cfd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/shogun/lib/DataType.h
Expand Up @@ -343,6 +343,14 @@ template<class T> class SGMatrix
free_matrix();
}

/** get a column vector
* @param col column index
*/
T* get_column_vector(index_t col)
{
return &matrix[col*num_rows];
}

/** operator overload for matrix read only access
* @param index to access
*/
Expand Down

0 comments on commit 02a1cfd

Please sign in to comment.