X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fmatrix.h;h=8e7ab39e7cc92d57a1d4651da58e7f9cdaf2afab;hp=769647cacdeede3685ec276e804e774c814783b0;hb=721cff7b2f8d555e085202f6f3f47801b92d0413;hpb=9eab44408b9213d8909b7a9e525f404ad06064dd diff --git a/ginac/matrix.h b/ginac/matrix.h index 769647ca..8e7ab39e 100644 --- a/ginac/matrix.h +++ b/ginac/matrix.h @@ -27,7 +27,9 @@ #include #include +#ifndef NO_GINAC_NAMESPACE namespace GiNaC { +#endif // ndef NO_GINAC_NAMESPACE /** Symbolic matrices. */ class matrix : public basic @@ -52,13 +54,13 @@ protected: // other constructors public: matrix(int r, int c); - matrix(int r, int c, vector const & m2); + matrix(int r, int c, exvector const & m2); // functions overriding virtual functions from bases classes public: basic * duplicate() const; - void printraw(ostream & os) const; void print(ostream & os, unsigned upper_precedence=0) const; + void printraw(ostream & os) const; int nops() const; ex & let_op(int const i); ex expand(unsigned options=0) const; @@ -100,7 +102,7 @@ protected: protected: int row; /**< number of rows */ int col; /**< number of columns */ - vector m; /**< representation (cols indexed first) */ + exvector m; /**< representation (cols indexed first) */ static unsigned precedence; }; @@ -152,6 +154,8 @@ inline const matrix &ex_to_matrix(const ex &e) return static_cast(*e.bp); } +#ifndef NO_GINAC_NAMESPACE } // namespace GiNaC +#endif // ndef NO_GINAC_NAMESPACE #endif // ndef __GINAC_MATRIX_H__