[mathicgb] 150/393: Updated to match mathic ColumnPrinter change from ratio to ratioInteger and ratioDouble.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:58:51 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 3c3d03e12476720658a43c3a6f882bebf07e4be6
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Tue Feb 5 13:22:28 2013 +0100

    Updated to match mathic ColumnPrinter change from ratio to ratioInteger and ratioDouble.
---
 src/mathicgb/BuchbergerAlg.cpp | 7 ++++---
 src/mathicgb/SignatureGB.cpp   | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/mathicgb/BuchbergerAlg.cpp b/src/mathicgb/BuchbergerAlg.cpp
index 76c3fb4..072be89 100755
--- a/src/mathicgb/BuchbergerAlg.cpp
+++ b/src/mathicgb/BuchbergerAlg.cpp
@@ -344,7 +344,7 @@ void BuchbergerAlg::printStats(std::ostream& out) const {
   const size_t basisTermCount = mBasis.monomialCount();
   name << "Terms for basis:\n";
   value << mic::ColumnPrinter::commafy(basisTermCount) << '\n';
-  extra << mic::ColumnPrinter::ratio(basisTermCount, basisSize)
+  extra << mic::ColumnPrinter::ratioInteger(basisTermCount, basisSize)
         << " terms per basis ele\n";
 
   const size_t minLeadCount = mBasis.minimalLeadCount();
@@ -408,7 +408,8 @@ void BuchbergerAlg::printStats(std::ostream& out) const {
   const unsigned long long redSteps = reducerStats.steps;
   name << "Sig reduction steps:\n";
   value << mic::ColumnPrinter::commafy(redSteps) << '\n';
-  extra << mic::ColumnPrinter::ratio(redSteps, reductions - singularReductions)
+  extra << mic::ColumnPrinter::ratioInteger
+    (redSteps, reductions - singularReductions)
         << " steps per non-sing reduction\n";
 
   const unsigned long long longestReduction = reducerStats.maxSteps;
@@ -426,7 +427,7 @@ void BuchbergerAlg::printStats(std::ostream& out) const {
   const double clStepsRatio = static_cast<double>(clRedSteps) / clReductions;
   name << "Classic reduction steps:\n";
   value << mic::ColumnPrinter::commafy(clRedSteps) << '\n';
-  extra << mic::ColumnPrinter::ratio(clRedSteps, clReductions)
+  extra << mic::ColumnPrinter::ratioInteger(clRedSteps, clReductions)
         << " steps per reduction\n";
 
   const unsigned long long clLongestReduction = classicRedStats.maxSteps;
diff --git a/src/mathicgb/SignatureGB.cpp b/src/mathicgb/SignatureGB.cpp
index a4ee36d..bc16076 100755
--- a/src/mathicgb/SignatureGB.cpp
+++ b/src/mathicgb/SignatureGB.cpp
@@ -486,7 +486,7 @@ void SignatureGB::displaySomeStats(std::ostream& out) const {
   const size_t basisTermCount = GB->basis().monomialCount();
   name << "Terms for basis:\n";
   value << mic::ColumnPrinter::commafy(basisTermCount) << '\n';
-  extra << mic::ColumnPrinter::ratio(basisTermCount, basisSize)
+  extra << mic::ColumnPrinter::ratioInteger(basisTermCount, basisSize)
     << " terms per basis ele\n";
 
   const size_t minLeadCount = GB->basis().minimalLeadCount();

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