[mathicgb] 163/393: Avoided calls for reductions of zero polynomials.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:58:53 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 82b1b642e5724da3bf4bd1718e87c3381e308794
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Mon Feb 11 14:26:45 2013 +0100

    Avoided calls for reductions of zero polynomials.
---
 src/mathicgb/BuchbergerAlg.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mathicgb/BuchbergerAlg.cpp b/src/mathicgb/BuchbergerAlg.cpp
index 6196fa9..0512f8d 100755
--- a/src/mathicgb/BuchbergerAlg.cpp
+++ b/src/mathicgb/BuchbergerAlg.cpp
@@ -90,8 +90,10 @@ void BuchbergerAlg::insertPolys
     MATHICGB_ASSERT(toRetire.empty());
 
     // reduce everything in toReduce
-    mReducer.classicReducePolySet(toReduce, mBasis, toInsert);
-    toReduce.clear();
+    if (!toReduce.empty()) {
+      mReducer.classicReducePolySet(toReduce, mBasis, toInsert);
+      toReduce.clear();
+    }
   }
 
   MATHICGB_ASSERT(toRetire.empty());

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