Changeset 446 for trunk/lib/svm/KernelView.cc
- Timestamp:
- Dec 15, 2005, 6:11:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/svm/KernelView.cc
r336 r446 9 9 namespace svm { 10 10 11 KernelView::KernelView(const Kernel& kernel, const std::vector<size_t>& index) 12 : Kernel(), kernel_(&kernel), index_(index) 13 { 14 // to view into the original kernel rather than a view 15 //if (kernel.is_view()){ 16 // kernel_=kernel.kernel_; 17 // for (size_t i=0; i<index.size(); i++) 18 // index_[i]=kernel.index_[index[i]]; 19 //} 20 } 11 KernelView::KernelView(const Kernel& kernel, const std::vector<size_t>& index) 12 : Kernel(), kernel_(&kernel), index_(index) 13 { 14 } 15 16 KernelView::KernelView(const KernelView& other) 17 : Kernel(), kernel_(other.kernel_), index_(other.index_) 18 { 19 } 21 20 22 KernelView::~KernelView(void)23 {24 }21 KernelView::~KernelView(void) 22 { 23 } 25 24 26 25 }} // of namespace svm and namespace theplu
Note: See TracChangeset
for help on using the changeset viewer.