X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fmatrix.h;h=e48f3d8a19942773de59f3f50c189f04bee63845;hp=ab8d7997a6a93a192f16316ff165968eedc2ce37;hb=a17a77e5c3d4ec2a92804debac65c75921f0156d;hpb=92203097b593322eda950cf8c831177a0c204129 diff --git a/ginac/matrix.h b/ginac/matrix.h index ab8d7997..e48f3d8a 100644 --- a/ginac/matrix.h +++ b/ginac/matrix.h @@ -3,7 +3,7 @@ * Interface to symbolic matrices */ /* - * GiNaC Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2008 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 @@ -27,6 +27,7 @@ #include #include "basic.h" #include "ex.h" +#include "archive.h" namespace GiNaC { @@ -124,6 +125,10 @@ public: ex real_part() const; ex imag_part() const; + /** Save (a.k.a. serialize) object into archive. */ + void archive(archive_node& n) const; + /** Read (a.k.a. deserialize) object from archive. */ + void read_archive(const archive_node& n, lst& syms); protected: bool match_same_type(const basic & other) const; unsigned return_type() const { return return_types::noncommutative; }; @@ -170,6 +175,7 @@ protected: unsigned col; ///< number of columns exvector m; ///< representation (cols indexed first) }; +GINAC_DECLARE_UNARCHIVER(matrix); // wrapper functions around member functions