From a74dc4ea339457bef06d47a1ebca21d614bda279 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 19 Feb 2018 23:10:32 +0100 Subject: [PATCH] Fix ABI compatibility with so-version 6. Commit 1be7026a unintentionally broke the ABI since g++ doesn't appear to generate symbols for inline methods. Ugh. Cf. https://bugzilla.redhat.com/show_bug.cgi?id=1541187 --- ginac/matrix.cpp | 6 ++++++ ginac/matrix.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ginac/matrix.cpp b/ginac/matrix.cpp index bf7f8347..5b982251 100644 --- a/ginac/matrix.cpp +++ b/ginac/matrix.cpp @@ -937,6 +937,12 @@ ex matrix::charpoly(const ex & lambda) const } +/** Inverse of this matrix, with automatic algorithm selection. */ +matrix matrix::inverse() const +{ + return inverse(solve_algo::automatic); +} + /** Inverse of this matrix. * * @param algo selects the algorithm (one of solve_algo) diff --git a/ginac/matrix.h b/ginac/matrix.h index 02748413..1a95d0aa 100644 --- a/ginac/matrix.h +++ b/ginac/matrix.h @@ -148,7 +148,7 @@ public: ex determinant(unsigned algo = determinant_algo::automatic) const; ex trace() const; ex charpoly(const ex & lambda) const; - matrix inverse() const { return inverse(solve_algo::automatic); } + matrix inverse() const; matrix inverse(unsigned algo) const; matrix solve(const matrix & vars, const matrix & rhs, unsigned algo = solve_algo::automatic) const; -- 2.47.0