23 typedef unsigned int UI;
45 a_mat(
int i,
int j,
double v = 0);
53 inline std::valarray<double>&
x()
const {
return (*
x_);}
76 virtual void read(std::istream &i);
77 virtual void write(std::ostream &o)
const;
91 std::valarray<double> *
x_;
a_mat operator/(a_mat &a, const double v)
a_mat operator-(a_mat &a, a_mat &b)
a_mat operator*(a_mat &a, a_mat &b)
a_mat operator+(a_mat &a, a_mat &b)
a_mat operator*(double v)
a_mat & operator*=(double v)
std::valarray< double > * x_
a_mat(UI i, UI j, double v=0)
a_mat & operator=(const a_mat &m)
a_mat operator/(double v)
a_mat operator+(const a_mat &a)
std::valarray< double > & x() const
a_mat sub_matrix(const UI i, const UI j) const
virtual double operator()(const UI i, const UI j) const
a_mat & operator/=(double v)
bool operator==(const a_mat &a)
a_mat & operator-=(const a_mat &a)
a_mat & operator+=(const a_mat &a)
virtual double & operator()(const UI i, const UI j)
virtual void read(std::istream &i)
virtual void write(std::ostream &o) const