[mathicgb] 236/393: Fixed issue with ordering S-pairs where some of the components have been retired.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:59:10 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 17a8ed79d7f1fa39602a68bad3d21ddf208664fe
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Thu Apr 11 15:09:53 2013 -0400

    Fixed issue with ordering S-pairs where some of the components have been retired.
---
 src/mathicgb/SPairs.hpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mathicgb/SPairs.hpp b/src/mathicgb/SPairs.hpp
index cf8d71a..05ed93f 100755
--- a/src/mathicgb/SPairs.hpp
+++ b/src/mathicgb/SPairs.hpp
@@ -186,6 +186,11 @@ private:
       if (cmp == LT)
         return false;
 
+      const bool aRetired = mBasis.retired(rowA) || mBasis.retired(colA);
+      const bool bRetired = mBasis.retired(rowB) || mBasis.retired(colB);
+      if (aRetired || bRetired)
+        return !bRetired;
+
       if (mPreferSparseSPairs) {
         const auto termCountA =
           mBasis.basisElement(colA).termCount() +

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