89 template<
typename FV,
typename KF>
96 :
Kernel<FV,KF>( kernel, prob.l, prob.x)
99 cache =
new Cache(prob.
l,(
int)(cacheSizeMB*(1<<20)));
111 if((start = static_cast<int>(cache->
get_data(i,&data,len))) <
114 for(
int j = start; j < len; j++)
115 data[j] = static_cast<Qfloat>(
125 std::swap(y[i],y[j]);
SVC_Q(const KF &kernel, const SVM_Problem< FV > &prob, float cacheSizeMB, const schar *y_)
long get_data(const long index, Qfloat **data, long len)
void swap_index(long i, long j)
void swap_index(int i, int j) const
double kernel_function(int i, int j) const
Qfloat * get_Q(int i, int len) const
void clone(T *&dst, S *src, int n)
virtual void swap_index(int i, int j) const