* Interface to symbolic matrices */
/*
- * GiNaC Copyright (C) 1999-2018 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2019 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 solve(const matrix & vars, const matrix & rhs,
unsigned algo = solve_algo::automatic) const;
unsigned rank() const;
+ unsigned rank(unsigned solve_algo) const;
bool is_zero_matrix() const;
protected:
ex determinant_minor() const;
+ std::vector<unsigned> echelon_form(unsigned algo, int n);
int gauss_elimination(const bool det = false);
int division_free_elimination(const bool det = false);
int fraction_free_elimination(const bool det = false);
+ std::vector<unsigned> markowitz_elimination(unsigned n);
int pivot(unsigned ro, unsigned co, bool symbolic = true);
void print_elements(const print_context & c, const char *row_start, const char *row_end, const char *row_sep, const char *col_sep) const;
inline unsigned rank(const matrix & m)
{ return m.rank(); }
+inline unsigned rank(const matrix & m, unsigned solve_algo)
+{ return m.rank(solve_algo); }
// utility functions