From: Richard Kreckel Date: Mon, 19 Feb 2018 22:10:32 +0000 (+0100) Subject: Fix ABI compatibility with so-version 6. X-Git-Tag: release_1-7-4~1 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=a74dc4ea339457bef06d47a1ebca21d614bda279 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 --- 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;