Changeset 420 for trunk/lib/svm/Kernel_SEV.cc
 Timestamp:
 Dec 2, 2005, 1:15:50 AM (16 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/lib/svm/Kernel_SEV.cc
r336 r420 11 11 namespace svm { 12 12 13 13 14 Kernel_SEV::Kernel_SEV(const gslapi::matrix& data, const KernelFunction& kf) 14 15 : Kernel(data,kf), data_(data), kf_(&kf) … … 17 18 for (size_t i=0; i<kernel_matrix_.rows(); i++) 18 19 for (size_t j=i; j<kernel_matrix_.columns(); j++) 19 kernel_matrix_(i,j) = kernel_matrix_(j,i) = 20 (*kf_)(data_.TEMP_col_return(i),data_.TEMP_col_return(j)); 21 20 kernel_matrix_(i,j) = kernel_matrix_(j,i) = 21 (*kf_)(gslapi::vector(data_,i,false),gslapi::vector(data_,j,false)); 22 22 } 23 23 24 Kernel_SEV::~Kernel_SEV(void)25 {26 }27 24 28 25 }} // of namespace svm and namespace theplu
Note: See TracChangeset
for help on using the changeset viewer.