Ignore:
Timestamp:
Mar 2, 2006, 6:35:12 PM (17 years ago)
Author:
Markus Ringnér
Message:

Note there are some problem when creating MatrixLookups? from MatrixLookups? and index vectors. Halfway on the path to finding the bugs. This means CrossSplitter? and layers of CrossSplitters? do not work properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/MatrixLookup.cc

    r526 r531  
    2626
    2727
    28   MatrixLookup::MatrixLookup(const MatrixLookup& data,
     28  MatrixLookup::MatrixLookup(const MatrixLookup& ml,
    2929                     const std::vector<size_t>& row,
    3030                     const std::vector<size_t>& col)
    31     : DataLookup2D(row,col), data_(data.data_)
     31    : DataLookup2D(ml,row,col), data_(ml.data_)
    3232  {
    3333  }
     
    4444
    4545
    46   MatrixLookup::MatrixLookup(const MatrixLookup& data,
     46  MatrixLookup::MatrixLookup(const MatrixLookup& ml,
    4747                     const std::vector<size_t>& index, bool row)
    48     : DataLookup2D(index, row), data_(data.data_)
     48    : DataLookup2D(ml,index,row), data_(ml.data_)
    4949  {
    50     if(row){
    51       row_index_=index;
    52       column_index_.reserve((*data_).columns());
    53       for(size_t i=0;i<(*data_).columns();i++)
    54         column_index_.push_back(i);
    55     }
    56     else{
    57       column_index_=index;
    58       row_index_.reserve((*data_).rows());
    59       for(size_t i=0;i<(*data_).rows();i++)
    60         row_index_.push_back(i);
    61     }
    62 
    6350  }
    6451 
Note: See TracChangeset for help on using the changeset viewer.