[mathicgb] 308/393: Simplified MonoMonoid::create.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:59:27 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 136ab81f054b446d12a7b576420e47b5a156ed55
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date: Sun May 5 14:57:32 2013 +0200
Simplified MonoMonoid::create.
---
src/mathicgb/MonoMonoid.hpp | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/mathicgb/MonoMonoid.hpp b/src/mathicgb/MonoMonoid.hpp
index 21f6024..5cb4c3d 100755
--- a/src/mathicgb/MonoMonoid.hpp
+++ b/src/mathicgb/MonoMonoid.hpp
@@ -332,15 +332,7 @@ public:
/// Creates a compatible copy of monoid.
template<class E2, bool HC2, bool SH2, bool SO2>
static MonoMonoid create(const MonoMonoid<E2, HC2, SH2, SO2>& monoid) {
- std::vector<Exponent> gradings(monoid.varCount(), 1);
- gradings = monoid.gradings();
- reverseGradings(monoid.varCount(), gradings);
- if (!monoid.isLexBaseOrder())
- negateGradings(gradings);
- Order order(monoid.varCount(), std::move(gradings),
- monoid.isLexBaseOrder() ?
- Order::LexBaseOrder : Order::RevLexBaseOrder);
- return MonoMonoid(order);
+ return MonoMonoid(monoid.makeOrder(false, false));
}
/// The second.first value of the return pair indicates whether it
--
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