Opened 14 years ago

Closed 14 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 Jari Häkkinen)

  • 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 14 years ago by Jari Häkkinen

Status: newassigned

comment:2 Changed 14 years ago by Jari Häkkinen

Description: modified (diff)

comment:3 Changed 14 years ago by Jari Häkkinen

add and sub fixed in changeset:775

comment:4 Changed 14 years ago by Jari Häkkinen

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 14 years ago by Jari Häkkinen

Resolution: fixed
Status: assignedclosed

(In [782]) Fixes #195.

Note: See TracTickets for help on using tickets.