#include <ginac/basic.h>
#include <ginac/ex.h>
+#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
/** Symbolic matrices. */
class matrix : public basic
// other constructors
public:
matrix(int r, int c);
- matrix(int r, int c, vector<ex> 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;
protected:
int row; /**< number of rows */
int col; /**< number of columns */
- vector<ex> m; /**< representation (cols indexed first) */
+ exvector m; /**< representation (cols indexed first) */
static unsigned precedence;
};
return static_cast<const matrix &>(*e.bp);
}
+#ifndef NO_GINAC_NAMESPACE
} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
#endif // ndef __GINAC_MATRIX_H__