* Interface to symbolic matrices */
/*
- * GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2018 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
matrix(unsigned r, unsigned c, const lst & l);
matrix(std::initializer_list<std::initializer_list<ex>> l);
- matrix_init<ex, exvector::iterator> operator=(const ex & x) deprecated;
+ matrix_init<ex, exvector::iterator> operator=(const ex & x) attribute_deprecated;
protected:
matrix(unsigned r, unsigned c, const exvector & m2);
matrix(unsigned r, unsigned c, exvector && m2);
ex determinant(unsigned algo = determinant_algo::automatic) const;
ex trace() const;
ex charpoly(const ex & lambda) const;
- matrix inverse() const;
+ matrix inverse() const { return inverse(solve_algo::automatic); }
+ matrix inverse(unsigned algo) const;
matrix solve(const matrix & vars, const matrix & rhs,
unsigned algo = solve_algo::automatic) const;
unsigned rank() const;
{ return m.charpoly(lambda); }
inline matrix inverse(const matrix & m)
-{ return m.inverse(); }
+{ return m.inverse(solve_algo::automatic); }
+inline matrix inverse(const matrix & m, unsigned algo)
+{ return m.inverse(algo); }
inline unsigned rank(const matrix & m)
{ return m.rank(); }