Ignore:
Timestamp:
Feb 23, 2008, 11:52:43 PM (14 years ago)
Author:
Peter
Message:

using Index class instead of std::vector<size_t>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/kernel_lookup_test.cc

    r1121 r1134  
    8989         << "                           const vector<size_t>&,\n"
    9090         << "                           const vector<size_t>&)...";
    91   classifier::KernelLookup k2(kernel,index_odd,index_even);
     91  classifier::KernelLookup k2(kernel,utility::Index(index_odd),
     92                              utility::Index(index_even));
    9293  if (k2.rows()!=index_odd.size() || k2.columns()!=index_even.size()) {
    9394    ok =false;
     
    112113         << "                           const vector<size_t>&)...";
    113114  std::vector<size_t> one(1,1);
    114   classifier::KernelLookup k3(k2,one,one);
     115  classifier::KernelLookup k3(k2,utility::Index(one),utility::Index(one));
    115116  if (k3.rows()!=one.size() || k3.columns()!=one.size()) {
    116117    ok =false;
     
    149150  }
    150151 
    151   KernelLookup k5(k1,index_even,index_even);
     152  KernelLookup k5(k1,utility::Index(index_even),utility::Index(index_even));
    152153  std::vector<size_t> index5;
    153154  index5.push_back(0);
    154155  index5.push_back(2);
    155   const KernelLookup* k6 = k5.training_data(index5);
     156  const KernelLookup* k6 = k5.training_data(utility::Index(index5));
    156157  for (size_t s=0; s<k6->rows(); s++)
    157158    for (size_t t=0; t<k6->rows(); t++)
Note: See TracChangeset for help on using the changeset viewer.