Opened 17 years ago
Closed 17 years ago
#195 closed enhancement (fixed)
minimize interface to vector
Reported by: | Peter | Owned by: | Jari Häkkinen |
---|---|---|---|
Priority: | minor | Milestone: | yat 0.3 (Public release) |
Component: | utility | Version: | trunk |
Keywords: | Cc: |
Description (last modified by )
- Is add(const vector&) needed? since there is opererator+=(const vector&)
- add(double) could be an operator+=(double)
- max, min and related functions could be moved outside class
- scale(double) could be operator*=(double)
- set_basis(size_t) why?
- Is sub(const vector&) needed? since there is opererator-=(const vector&)
See also #194
Change History (5)
comment:1 Changed 17 years ago by
Status: | new → assigned |
---|
comment:2 Changed 17 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 17 years ago by
comment:4 Changed 17 years ago by
These are going to be moved out from vector:
bool isnull(void) const; double max(void) const; size_t max_index(void) const; double min(void) const; size_t min_index(void) const; std::pair<double,double> minmax(void) const; std::pair<size_t,size_t> minmax_index(void) const; void set_basis(const size_t i); void set_zero(void); void sort(void); double sum(void) const;
comment:5 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
add and sub fixed in changeset:775