* Minor optimization: swap instead of assign.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Sun, 26 Dec 2004 18:48:29 +0000 (18:48 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Sun, 26 Dec 2004 18:48:29 +0000 (18:48 +0000)
ginac/matrix.cpp

index e24f644741d6be1745c610020d314b5c338cf7ac..4c25d12bce11caf2266b9c4c6ccade7a6a37a659 100644 (file)
@@ -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();
        }