X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fmatrix.h;h=e48f3d8a19942773de59f3f50c189f04bee63845;hp=8544c9db9698a0b7cb05bc3699be3ef873dc8b05;hb=d327f3f00c66a79d42855939866047b3e8caa630;hpb=434e5582627a91aa4d8fdb5156d975482a7f350c diff --git a/ginac/matrix.h b/ginac/matrix.h index 8544c9db..e48f3d8a 100644 --- a/ginac/matrix.h +++ b/ginac/matrix.h @@ -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