Changeset 531 for trunk/lib/classifier/MatrixLookup.cc
- Timestamp:
- Mar 2, 2006, 6:35:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/classifier/MatrixLookup.cc
r526 r531 26 26 27 27 28 MatrixLookup::MatrixLookup(const MatrixLookup& data,28 MatrixLookup::MatrixLookup(const MatrixLookup& ml, 29 29 const std::vector<size_t>& row, 30 30 const std::vector<size_t>& col) 31 : DataLookup2D( row,col), data_(data.data_)31 : DataLookup2D(ml,row,col), data_(ml.data_) 32 32 { 33 33 } … … 44 44 45 45 46 MatrixLookup::MatrixLookup(const MatrixLookup& data,46 MatrixLookup::MatrixLookup(const MatrixLookup& ml, 47 47 const std::vector<size_t>& index, bool row) 48 : DataLookup2D( index, row), data_(data.data_)48 : DataLookup2D(ml,index,row), data_(ml.data_) 49 49 { 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 63 50 } 64 51
Note: See TracChangeset
for help on using the changeset viewer.