18 using namespace shogun;
32 SG_DEBUG(
"using custom distance of size %dx%d\n", cols,cols);
40 for (int32_t row=0; row<
num_rows; row++)
42 for (int32_t col=row; col<
num_cols; col++)
43 dmatrix[int64_t(row) * num_cols - int64_t(row)*(row+1)/2 + col]=d->
distance(row,col);
56 for (int32_t row=0; row<
num_rows; row++)
58 for (int32_t col=0; col<
num_cols; col++)
101 CDistance::init(l, r);
110 void CCustomDistance::cleanup_custom()
112 SG_DEBUG(
"cleanup up custom distance\n");
120 void CCustomDistance::init()