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:
69f9dc0
)
Fix little missed optimization.
author
Richard Kreckel
<kreckel@ginac.de>
Fri, 6 Nov 2015 14:04:49 +0000
(15:04 +0100)
committer
Richard Kreckel
<kreckel@ginac.de>
Fri, 6 Nov 2015 14:04:49 +0000
(15:04 +0100)
ginac/power.cpp
patch
|
blob
|
history
diff --git
a/ginac/power.cpp
b/ginac/power.cpp
index 485fa06fa7b21e4eb280a4d9176122844f30675f..491f2d332a86a181184d9abad1b2a97bea796de8 100644
(file)
--- a/
ginac/power.cpp
+++ b/
ginac/power.cpp
@@
-1091,7
+1091,7
@@
public:
* where n = p1+p2+...+pk, i.e. p is a partition of n.
*/
const numeric
-multinomial_coefficient(const std::vector<int> p)
+multinomial_coefficient(const std::vector<int>
&
p)
{
numeric n = 0, d = 1;
for (auto & it : p) {