*
* Implementation of symbolic matrices */
+/*
+ * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#include <algorithm>
#include <stdexcept>
-#include "ginac.h"
+#include "matrix.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
//////////
// default constructor, destructor, copy constructor, assignment operator
/** Default ctor. Initializes to 1 x 1-dimensional zero-matrix. */
matrix::matrix()
- : basic(TINFO_MATRIX), row(1), col(1)
+ : basic(TINFO_matrix), row(1), col(1)
{
debugmsg("matrix default constructor",LOGLEVEL_CONSTRUCT);
m.push_back(exZERO());
* @param r number of rows
* @param c number of cols */
matrix::matrix(int r, int c)
- : basic(TINFO_MATRIX), row(r), col(c)
+ : basic(TINFO_matrix), row(r), col(c)
{
debugmsg("matrix constructor from int,int",LOGLEVEL_CONSTRUCT);
m.resize(r*c, exZERO());
/** Ctor from representation, for internal use only. */
matrix::matrix(int r, int c, vector<ex> const & m2)
- : basic(TINFO_MATRIX), row(r), col(c), m(m2)
+ : basic(TINFO_matrix), row(r), col(c), m(m2)
{
debugmsg("matrix constructor from int,int,vector<ex>",LOGLEVEL_CONSTRUCT);
}
const matrix some_matrix;
type_info const & typeid_matrix=typeid(some_matrix);
+
+} // namespace GiNaC