28 x_ =
new std::valarray<double>(v,i*j);
36 x_ =
new std::valarray<double>(v,i*j);
70 for (
UI i = 0; i < a.
size(); i++)
71 if (a.
x()[i] != (*
x_)[i])
return false;
133 r(j,i) = (*x_)[i*
maxj_+j];
143 v= (*x_)[i*
maxj_+c1];
145 (*x_)[i*
maxj_+c2] = v;
157 (*x_)[rr1+j] = (*x_)[rr2+j];
179 N(ni,nj) = (*this)(i,j);
220 in >> this->
operator()(j,k);
226 o << (int)
maxi_ <<
" " << (
int)
maxj_ << std::endl;
230 o << this->
operator()(i,j) <<
" ";
280 for (
UI i = 0; i < a.
maxi(); i++)
282 for (
UI j = 0; j < b.
maxj(); j++)
285 for (
UI k = 0; k < a.
maxj(); k++)
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)
std::ostream & operator<<(std::ostream &o, const UI &v)
std::istream & operator>>(std::istream &i, UI &v)
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
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 void read(std::istream &i)
virtual void write(std::ostream &o) const