*
* Implementation of GiNaC's non-commutative products of expressions. */
+/*
+ * 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 <iostream>
#include <stdexcept>
-#include "ginac.h"
+#include "ncmul.h"
+#include "ex.h"
+#include "add.h"
+#include "mul.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
//////////
// default constructor, destructor, copy constructor assignment operator and helpers
ncmul::ncmul()
{
debugmsg("ncmul default constructor",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_NCMUL;
+ tinfo_key = TINFO_ncmul;
}
ncmul::~ncmul()
exprseq(lh,rh)
{
debugmsg("ncmul constructor from ex,ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_NCMUL;
+ tinfo_key = TINFO_ncmul;
}
ncmul::ncmul(ex const & f1, ex const & f2, ex const & f3) :
exprseq(f1,f2,f3)
{
debugmsg("ncmul constructor from 3 ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_NCMUL;
+ tinfo_key = TINFO_ncmul;
}
ncmul::ncmul(ex const & f1, ex const & f2, ex const & f3,
ex const & f4) : exprseq(f1,f2,f3,f4)
{
debugmsg("ncmul constructor from 4 ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_NCMUL;
+ tinfo_key = TINFO_ncmul;
}
ncmul::ncmul(ex const & f1, ex const & f2, ex const & f3,
ex const & f4, ex const & f5) : exprseq(f1,f2,f3,f4,f5)
{
debugmsg("ncmul constructor from 5 ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_NCMUL;
+ tinfo_key = TINFO_ncmul;
}
ncmul::ncmul(ex const & f1, ex const & f2, ex const & f3,
exprseq(f1,f2,f3,f4,f5,f6)
{
debugmsg("ncmul constructor from 6 ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_NCMUL;
+ tinfo_key = TINFO_ncmul;
}
ncmul::ncmul(exvector const & v, bool discardable) : exprseq(v,discardable)
{
debugmsg("ncmul constructor from exvector,bool",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_NCMUL;
+ tinfo_key = TINFO_ncmul;
}
ncmul::ncmul(exvector * vp) : exprseq(vp)
{
debugmsg("ncmul constructor from exvector *",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_NCMUL;
+ tinfo_key = TINFO_ncmul;
}
//////////
status_flags::evaluated);
}
-
+} // namespace GiNaC