[mathicgb] 353/393: Moved a line in BjarkeGeobucket2 that is a boost to performance.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:59:34 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 5738142981b0724361193c70956be30fb1b3446e
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Tue Sep 3 11:57:04 2013 +0200

    Moved a line in BjarkeGeobucket2 that is a boost to performance.
---
 src/mathicgb/BjarkeGeobucket2.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mathicgb/BjarkeGeobucket2.cpp b/src/mathicgb/BjarkeGeobucket2.cpp
index 7e913a8..65da925 100755
--- a/src/mathicgb/BjarkeGeobucket2.cpp
+++ b/src/mathicgb/BjarkeGeobucket2.cpp
@@ -209,9 +209,9 @@ public:
     auto it = g1->begin();
     const auto end = g1->end();
     for (++it; it != end; ++it) {
-      auto p = mMap.insertProduct(it.getMonomial(), multiplier.monom);
       coefficient prod;
       mRing.coefficientMult(it.getCoefficient(), multiplier.coeff, prod);
+      auto p = mMap.insertProduct(it.getMonomial(), multiplier.monom);
       mRing.coefficientAddTo(p.first->value(), prod);
       if (p.second)
         mNodesTmp.emplace_back(p.first);

-- 
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