Opened 14 years ago
Closed 14 years ago
#444 closed request (fixed)
iterators in lookups
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | major | Milestone: | yat 0.5 |
Component: | classifier | Version: | trunk |
Keywords: | Cc: |
Description
go through how iterators are defined in lookups.
Two issues:
- standard requires that
value_type
is not const - Weighted iterators should use
DataWeight
rather thanstd::pair<double, double>
Change History (8)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
comment:3 follow-up: 4 Changed 14 years ago by
(In [1528]) refs #444 - started using boost::permutation_iterator for vector iterators from MatrixLookup? and also removed stride layer for const_iterator (stride was always 1).
comment:4 Changed 14 years ago by
Replying to peter:
(In [1528]) refs #444 - started using boost::permutation_iterator for vector iterators from MatrixLookup? and also removed stride layer for const_iterator (stride was always 1).
We should do corresponding thing for MatrixLookupWeighted?, but need ticket:396 for that.
comment:7 Changed 14 years ago by
Status: | new → assigned |
---|
comment:8 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [1525]) refs #444 - simplifying code in DataLookupD by calling underlying MatrixLookup? rather than creating iterator yourself.