projects
/
linpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
42c85c0
)
Variable renaming in LinExpr.scaleint()
author
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Tue, 19 Aug 2014 09:30:21 +0000
(11:30 +0200)
committer
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Tue, 19 Aug 2014 12:35:41 +0000
(14:35 +0200)
linpy/linexprs.py
patch
|
blob
|
history
diff --git
a/linpy/linexprs.py
b/linpy/linexprs.py
index
e4ed1cc
..
a49f90e
100644
(file)
--- a/
linpy/linexprs.py
+++ b/
linpy/linexprs.py
@@
-273,9
+273,9
@@
class LinExpr:
Return the expression multiplied by its lowest common denominator to
make all values integer.
"""
- lc
m
= functools.reduce(lambda a, b: a*b // gcd(a, b),
+ lc
d
= functools.reduce(lambda a, b: a*b // gcd(a, b),
[value.denominator for value in self.values()])
- return self * lc
m
+ return self * lc
d
def subs(self, symbol, expression=None):
"""