Changeset 52


Ignore:
Timestamp:
Mar 11, 2004, 2:07:24 PM (18 years ago)
Author:
Peter
Message:

format of data transposed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test_kernel.cc

    r42 r52  
    2727  cout << "testing the linear kernel" << endl;   
    2828  ifstream is("nm_data_centralized.txt");
    29   theplu::gslapi::matrix data(is);
     29  theplu::gslapi::matrix transposed_data(is);
    3030  is.close();
     31  // Because how the kernel is treated is changed, I have to transpose the data
     32  theplu::gslapi::matrix data=transposed_data.transpose();
    3133 
    32   is.open("nm_kernel.txt");
     34  is.open("nm_kernel.txt");
    3335  theplu::gslapi::matrix kernel_matlab(is);
    3436  is.close();
     
    5961  cout << tmp/diff.rows()/diff.rows() << endl;
    6062   
    61   diff(1,2)=32;
    62   diff(2,1)=111;
    63  
    64   tmp=diff(1,2);
    65   cout << tmp << endl;
    66 
    67 
    68   return 0;
     63  return 0;
    6964}
    7065
Note: See TracChangeset for help on using the changeset viewer.