Changeset 164


Ignore:
Timestamp:
Sep 22, 2004, 7:15:37 PM (17 years ago)
Author:
Peter
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test_kernel.cc

    r121 r164  
    3030  is.close();
    3131  // Because how the kernel is treated is changed, I have to transpose the data
    32   theplu::gslapi::matrix data=transposed_data.transpose();
    33  
     32  //theplu::gslapi::matrix data=transposed_data.transpose();
     33  theplu::gslapi::matrix data=transposed_data;
     34
    3435  is.open("data/nm_kernel.txt");
    35   theplu::gslapi::matrix kernel_matlab(is);
     36  theplu::gslapi::matrix kernel_matlab(is);
    3637  is.close();
    37   theplu::cpptools::KernelFunction* kf =
     38  theplu::cpptools::KernelFunction* kf =
    3839    new theplu::cpptools::PolynomialKernelFunction();
    39   theplu::cpptools::Kernel kernel(data,*kf);
    40   theplu::gslapi::matrix diff(kernel.get()-kernel_matlab);
     40  theplu::cpptools::Kernel kernel(data,*kf);
     41  theplu::gslapi::matrix diff(kernel.get()-kernel_matlab);
    4142  double tmp=0;
    4243  for(u_int i=0;i<diff.rows();i++)
Note: See TracChangeset for help on using the changeset viewer.