Changeset 1526
- Timestamp:
- Sep 24, 2008, 2:42:52 PM (15 years ago)
- Location:
- trunk/yat/classifier
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/classifier/DataLookupWeighted1D.cc
r1487 r1526 69 69 { 70 70 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_); 74 73 } 75 74 … … 84 83 { 85 84 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_); 91 87 } 92 88 -
trunk/yat/classifier/DataLookupWeighted1D.h
r1487 r1526 48 48 public: 49 49 /// '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; 58 51 59 52 ///
Note: See TracChangeset
for help on using the changeset viewer.