Skip to content

Commit

Permalink
added debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Apr 14, 2012
1 parent 4711307 commit 2e21eb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shogun/kernel/CustomKernel.cpp
Expand Up @@ -57,12 +57,14 @@ CCustomKernel::init()
CCustomKernel::CCustomKernel()
: CKernel(10), kmatrix(), upper_diagonal(false)
{
SG_DEBUG("created CCustomKernel\n");
init();
}

CCustomKernel::CCustomKernel(CKernel* k)
: CKernel(10)
{
SG_DEBUG("created CCustomKernel\n");
init();

/* if constructed from a custom kernel, use same kernel matrix */
Expand All @@ -79,12 +81,14 @@ CCustomKernel::CCustomKernel(CKernel* k)
CCustomKernel::CCustomKernel(SGMatrix<float64_t> km)
: CKernel(10), upper_diagonal(false)
{
SG_DEBUG("created CCustomKernel\n");
init();
set_full_kernel_matrix_from_full(km);
}

CCustomKernel::~CCustomKernel()
{
SG_DEBUG("destroying CCustomKernel\n");
SG_UNREF(m_row_subset);
SG_UNREF(m_col_subset);
cleanup();
Expand Down

0 comments on commit 2e21eb9

Please sign in to comment.