git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a68aee9
)
* Minor optimization: swap instead of assign.
author
Richard Kreckel
<Richard.Kreckel@uni-mainz.de>
Sun, 26 Dec 2004 18:48:29 +0000
(18:48 +0000)
committer
Richard Kreckel
<Richard.Kreckel@uni-mainz.de>
Sun, 26 Dec 2004 18:48:29 +0000
(18:48 +0000)
ginac/matrix.cpp
patch
|
blob
|
history
diff --git
a/ginac/matrix.cpp
b/ginac/matrix.cpp
index e24f644741d6be1745c610020d314b5c338cf7ac..4c25d12bce11caf2266b9c4c6ccade7a6a37a659 100644
(file)
--- 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:
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();
}
B.clear();
}