X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fmatrix.h;h=29af2a0747d903198fa1cfa78347a5e2ab0097ba;hp=fc6a80bf4e6b3127eb701809792d948fdb694525;hb=ff48a4c31a23d98cc818e973e71010b7d5a97af6;hpb=6d1e12e7c09d1e70d6c76b57aafb213cbcfba6eb diff --git a/ginac/matrix.h b/ginac/matrix.h index fc6a80bf..29af2a07 100644 --- a/ginac/matrix.h +++ b/ginac/matrix.h @@ -3,7 +3,7 @@ * Interface to symbolic matrices */ /* - * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2004 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 @@ -120,6 +120,7 @@ public: ex add_indexed(const ex & self, const ex & other) const; ex scalar_mul_indexed(const ex & self, const numeric & other) const; bool contract_with(exvector::iterator self, exvector::iterator other, exvector & v) const; + ex conjugate() const; protected: bool match_same_type(const basic & other) const; @@ -147,6 +148,7 @@ public: matrix inverse() const; matrix solve(const matrix & vars, const matrix & rhs, unsigned algo = solve_algo::automatic) const; + unsigned rank() const; protected: ex determinant_minor() const; int gauss_elimination(const bool det = false); @@ -202,6 +204,9 @@ inline ex charpoly(const matrix & m, const ex & lambda) inline matrix inverse(const matrix & m) { return m.inverse(); } +inline unsigned rank(const matrix & m) +{ return m.rank(); } + // utility functions /** Specialization of is_exactly_a(obj) for matrix objects. */