diff options
author | MichalMoskal <unknown> | 2010-12-02 01:41:53 +0000 |
---|---|---|
committer | MichalMoskal <unknown> | 2010-12-02 01:41:53 +0000 |
commit | e9421952b59af7ba330c0b8fe65a3382181477ca (patch) | |
tree | d2f51bff196377b859f8c4f9eb7652e396dc4901 /Source/AIFramework | |
parent | 43cdc44acb2f535b44f0d99f65048237488a2528 (diff) |
Get rid of F# dependencies - use System.Numerics and a custom Rational structure instead
Diffstat (limited to 'Source/AIFramework')
-rw-r--r-- | Source/AIFramework/Polyhedra/LinearConstraint.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/AIFramework/Polyhedra/LinearConstraint.cs b/Source/AIFramework/Polyhedra/LinearConstraint.cs index ce5c23a2..5d1cabd5 100644 --- a/Source/AIFramework/Polyhedra/LinearConstraint.cs +++ b/Source/AIFramework/Polyhedra/LinearConstraint.cs @@ -429,14 +429,14 @@ namespace Microsoft.AbstractInterpretationFramework { foreach (DictionaryEntry /*IVarianble->Rational*/ e in coefficients) {
Rational r = (Rational)(cce.NonNull(e.Value));
if (r.IsNonZero) {
- newCoefficients.Add(e.Key, new Rational(r.Numerator / gcd.Numerator, r.Denominator / gcd.Denominator));
+ newCoefficients.Add(e.Key, Rational.FromBignums(r.Numerator / gcd.Numerator, r.Denominator / gcd.Denominator));
} else {
newCoefficients.Add(e.Key, r);
}
}
coefficients = newCoefficients;
- rhs = rhs.IsNonZero ? (Rational)new Rational(rhs.Numerator / gcd.Numerator, rhs.Denominator / gcd.Denominator) : rhs;
+ rhs = rhs.IsNonZero ? Rational.FromBignums(rhs.Numerator / gcd.Numerator, rhs.Denominator / gcd.Denominator) : rhs;
}
}
|