34 #ifdef USE_SHORTREAL_KERNELCACHE
204 "%s::kernel(): index out of Range: idx_a=%d/%d idx_b=%d/%d\n",
216 return get_kernel_matrix<float64_t>();
228 REQUIRE(
lhs,
"CKernel::get_kernel_diagonal(): Left-handside "
229 "features missing!\n");
231 REQUIRE(
rhs,
"CKernel::get_kernel_diagonal(): Right-handside "
232 "features missing!\n");
235 "CKernel::get_kernel_diagonal(): Left- and right-"
236 "handside features must be equal sized\n");
239 if (!preallocated.vector)
244 "%s::get_kernel_diagonal(): Preallocated vector has"
248 for (
index_t i=0; i<preallocated.vlen; ++i)
249 preallocated[i]=
kernel(i, i);
264 for (int32_t i=0; i!=
num_rhs; i++)
280 for (int32_t j=0; j!=
num_lhs; j++)
433 #endif //USE_SVMLIGHT
466 int32_t docnum, int32_t *active2dnum,
float64_t *buffer,
467 bool full_line=
false);
492 int32_t totdoc, int32_t num_shrink, int32_t *after);
500 bool regression_hack=
false);
555 #endif //USE_SVMLIGHT
605 int32_t count, int32_t *IDX,
float64_t *weights);
636 int32_t num_vec, int32_t* vec_idx,
float64_t* target,
637 int32_t num_suppvec, int32_t* IDX,
float64_t* alphas,
664 int32_t vector_idx,
float64_t * subkernel_contrib);
695 SG_ERROR(
"Can't compute derivative wrt %s parameter\n", param->
m_name)
755 i_start=(int32_t) (offs/int64_t(n));
809 #ifndef DOXYGEN_SHOULD_SKIP_THIS
811 struct KERNEL_CACHE {
817 int32_t *active2totdoc;
819 int32_t *totdoc2active;
840 struct S_KTHREAD_PARAM
849 int32_t* uncached_rows;
851 int32_t num_uncached;
853 uint8_t* needs_computation;
861 #endif // DOXYGEN_SHOULD_SKIP_THIS
864 static void* cache_multiple_kernel_row_helper(
void* p);
867 void kernel_cache_free(int32_t cacheidx);
868 int32_t kernel_cache_malloc();
869 int32_t kernel_cache_free_lru();
871 #endif //USE_SVMLIGHT
881 #endif //USE_SVMLIGHT