Changeset 1526


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

refs #444. same as in [1525] but for DataLookupWeighted1D.

Location:
trunk/yat/classifier
Files:
2 edited

Legend:

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

    r1487 r1526  
    6969  {
    7070    if (column_vector_)
    71       return const_iterator(const_iterator::iterator_type(*matrix_, 0, index_),
    72                             matrix_->columns());
    73     return const_iterator(const_iterator::iterator_type(*matrix_, index_, 0),1);
     71      return matrix_->begin_column(index_);
     72    return matrix_->begin_row(index_);
    7473  }
    7574
     
    8483  {
    8584    if (column_vector_)
    86       return const_iterator(const_iterator::iterator_type(*matrix_,
    87                                                           matrix_->rows(),
    88                                                           index_),
    89                             matrix_->columns());
    90     return const_iterator(const_iterator::iterator_type(*matrix_,index_+1,0),1);
     85      return matrix_->end_column(index_);
     86    return matrix_->end_row(index_);
    9187  }
    9288
  • trunk/yat/classifier/DataLookupWeighted1D.h

    r1487 r1526  
    4848  public:
    4949    /// 'Read Only' iterator
    50     typedef utility::StrideIterator<
    51     utility::Container2DIterator<const MatrixLookupWeighted,
    52                                  const std::pair<double, double>, void,
    53                                  const std::pair<double, double>,
    54              utility::IteratorPolicyWeighted<const MatrixLookupWeighted,
    55                                              const double,
    56                                              const double> > >
    57     const_iterator;
     50    typedef MatrixLookupWeighted::const_row_iterator const_iterator;
    5851
    5952    ///
Note: See TracChangeset for help on using the changeset viewer.