X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fncmul.h;h=d1a106cdec4202ce0d5198984a291e43638220cc;hp=cc156d54a480af65b0816bcd0825052ede4ce287;hb=f7b1fb1fd4f8e3f653a09d02ea1e4c489f04f8af;hpb=29b420743599f001b8bfc8b63fb6ac81aa3dfba7 diff --git a/ginac/ncmul.h b/ginac/ncmul.h index cc156d54..d1a106cd 100644 --- a/ginac/ncmul.h +++ b/ginac/ncmul.h @@ -3,7 +3,7 @@ * Interface to GiNaC's non-commutative products of expressions. */ /* - * GiNaC Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2010 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 @@ -20,10 +20,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __GINAC_NCMUL_H__ -#define __GINAC_NCMUL_H__ +#ifndef GINAC_NCMUL_H +#define GINAC_NCMUL_H #include "exprseq.h" +#include "archive.h" namespace GiNaC { @@ -65,11 +66,13 @@ public: ex thiscontainer(const exvector & v) const; ex thiscontainer(std::auto_ptr vp) const; ex conjugate() const; + ex real_part() const; + ex imag_part() const; protected: ex derivative(const symbol & s) const; unsigned return_type() const; - tinfo_t return_type_tinfo() const; + return_type_t return_type_tinfo() const; // new virtual functions which can be overridden by derived classes // none @@ -84,6 +87,7 @@ protected: public: const exvector & get_factors() const; }; +GINAC_DECLARE_UNARCHIVER(ncmul); // friend funtions @@ -92,4 +96,4 @@ ex hold_ncmul(const exvector & v); } // namespace GiNaC -#endif // ndef __GINAC_NCMUL_H__ +#endif // ndef GINAC_NCMUL_H