Ignore:
Timestamp:
Sep 24, 2008, 2:36:10 PM (15 years ago)
Author:
Peter
Message:

refs #444 - simplifying code in DataLookupD by calling underlying MatrixLookup? rather than creating iterator yourself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/DataLookup1D.cc

    r1487 r1525  
    9494  {
    9595    if (column_vector_)
    96       return const_iterator(const_iterator::iterator_type(*matrix_, 0, index_),
    97                             matrix_->columns());
    98     return const_iterator(const_iterator::iterator_type(*matrix_, index_, 0),1);
     96      return matrix_->begin_column(index_);
     97    return matrix_->begin_row(index_);
    9998  }
    10099
     
    103102  {
    104103    if (column_vector_)
    105       return const_iterator(const_iterator::iterator_type(*matrix_,
    106                                                           matrix_->rows(),
    107                                                           index_),
    108                             matrix_->columns());
    109     return const_iterator(const_iterator::iterator_type(*matrix_,index_+1,0), 1);
     104      return matrix_->end_column(index_);
     105    return matrix_->end_row(index_);
    110106  }
    111107
Note: See TracChangeset for help on using the changeset viewer.