[SCM] an open source computer algebra system branch, cleanedupstream, updated. 6125e540ca6d66c307958938a9d53b245507c323
Bernhard R. Link
brlink at debian.org
Tue Apr 24 15:54:25 UTC 2012
The following commit has been merged in the cleanedupstream branch:
commit eccd9c9678ec8f98719ef4a3402ee87e10812fc9
Author: Yue Ren <ren at mathematik.uni-kl.de>
Date: Tue Mar 27 15:18:01 2012 +0200
fix: fixed redundant computations when passing fans to polymake
diff --git a/callpolymake/polymake_conversion.cc b/callpolymake/polymake_conversion.cc
index 4aa4e79..cc645e8 100644
--- a/callpolymake/polymake_conversion.cc
+++ b/callpolymake/polymake_conversion.cc
@@ -439,7 +439,7 @@ polymake::perl::Object* ZFan2PmFan (gfan::ZFan* zf)
polymake::perl::Object* pf = new polymake::perl::Object("PolyhedralFan");
polymake::Matrix<polymake::Integer> zm = raysOf(zf);
- pf->take("INPUT_RAYS") << zm;
+ pf->take("RAYS") << zm; // using rays here instead of INPUT_RAYS prevents redundant computations
polymake::Array<polymake::Set<int> > ar = conesOf(zf);
pf->take("INPUT_CONES") << ar;
--
an open source computer algebra system
More information about the debian-science-commits
mailing list