[mathicgb] 269/393: Fixed bug in copy constructor of MonoMonoid that set all monomials to have a hash value of 0, leading to huge slowdowns.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:59:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository mathicgb.

commit 6e08a20cca11d03d353dff35ffb8bc7030f55c26
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Wed Apr 17 13:23:54 2013 -0400

    Fixed bug in copy constructor of MonoMonoid that set all monomials to have a hash value of 0, leading to huge slowdowns.
---
 src/cli/CommonParams.cpp    | 0
 src/mathicgb/MonoMonoid.hpp | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cli/CommonParams.cpp b/src/cli/CommonParams.cpp
old mode 100644
new mode 100755
diff --git a/src/mathicgb/MonoMonoid.hpp b/src/mathicgb/MonoMonoid.hpp
index c71e190..a01d2f8 100755
--- a/src/mathicgb/MonoMonoid.hpp
+++ b/src/mathicgb/MonoMonoid.hpp
@@ -205,7 +205,7 @@ public:
     mOrderIndexEnd(mOrderIndexBegin + StoreOrder * mGradingCount),
     mEntryCount
       (mOrderIndexEnd + StoreHash == 0 ? 1 : mOrderIndexEnd + StoreHash),
-    mHashCoefficients(mVarCount),
+    mHashCoefficients(monoid.mHashCoefficients),
     mGradingIsTotalDegree(monoid.mGradingIsTotalDegree),
     mGradings(monoid.mGradings),
     mPool(*this)
@@ -224,7 +224,7 @@ public:
     mOrderIndexEnd(mOrderIndexBegin + StoreOrder * mGradingCount),
     mEntryCount
       (mOrderIndexEnd + StoreHash == 0 ? 1 : mOrderIndexEnd + StoreHash),
-    mHashCoefficients(mVarCount),
+    mHashCoefficients(monoid.mHashCoefficients),
     mGradingIsTotalDegree(monoid.mGradingIsTotalDegree),
     mGradings(monoid.mGradings),
     mPool(*this)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathicgb.git



More information about the debian-science-commits mailing list