From: Richard Kreckel Date: Sun, 26 Dec 2004 18:48:29 +0000 (+0000) Subject: * Minor optimization: swap instead of assign. X-Git-Tag: release_1-4-0~203 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=172d1d7b2a12e2b3b6ff4ff35c37aeccafed3edb;ds=sidebyside * Minor optimization: swap instead of assign. --- diff --git a/ginac/matrix.cpp b/ginac/matrix.cpp index e24f6447..4c25d12b 100644 --- a/ginac/matrix.cpp +++ b/ginac/matrix.cpp @@ -1205,7 +1205,7 @@ ex matrix::determinant_minor() const Pkey[j] = Pkey[j-1]+1; } while(fc); // next column, so change the role of A and B: - A = B; + A.swap(B); B.clear(); }