Changeset f80a530 in git
- Timestamp:
- Jul 3, 2013, 4:11:47 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- c8e1159b19cf2962fcc89a7d558f7fc2ef5222ec
- Parents:
- e44b1496e7a09174e77e9bf67544f253e86b39c8
- git-author:
- Yue Ren <ren@mathematik.uni-kl.de>2013-07-03 16:11:47+02:00
- git-committer:
- Yue Ren <ren@mathematik.uni-kl.de>2013-07-18 14:56:51+02:00
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
dyn_modules/callgfanlib/bbfan.cc
re44b149 rf80a530 45 45 { 46 46 gfan::ZFan* zf = (gfan::ZFan*)d; 47 std::string s = zf->toString ();47 std::string s = zf->toStringJustRaysAndMaximalCones(); 48 48 return omStrDup(s.c_str()); 49 49 } … … 718 718 } 719 719 720 gfan::ZMatrix rays( gfan::ZFan*zf)720 gfan::ZMatrix rays(const gfan::ZFan* const zf) 721 721 { 722 722 gfan::ZMatrix rays(0,zf->getAmbientDimension()); -
dyn_modules/callgfanlib/bbfan.h
re44b149 rf80a530 16 16 int getLinealityDimension(gfan::ZFan* zf); 17 17 int isSimplicial(gfan::ZFan* zf); 18 gfan::Matrix<gfan::Integer> rays( gfan::ZFan*zf);18 gfan::Matrix<gfan::Integer> rays(const gfan::ZFan* const zf); 19 19 20 20 #endif -
gfanlib/gfanlib_polymakefile.cpp
re44b149 rf80a530 170 170 else 171 171 { 172 fprintf(f,"_application %s\n",application.c_str());173 fprintf(f,"_version 2.2\n");174 fprintf(f,"_type %s\n",type.c_str());172 // fprintf(f,"_application %s\n",application.c_str()); 173 // fprintf(f,"_version 2.2\n"); 174 // fprintf(f,"_type %s\n",type.c_str()); 175 175 176 176 for(list<PolymakeProperty>::const_iterator i=properties.begin();i!=properties.end();i++) … … 200 200 else 201 201 { 202 file << "_application " << application << endl;203 file << "_version 2.2\n";204 file << "_type " << type << endl;202 // file << "_application " << application << endl; 203 // file << "_version 2.2\n"; 204 // file << "_type " << type << endl; 205 205 206 206 for(list<PolymakeProperty>::const_iterator i=properties.begin();i!=properties.end();i++) -
gfanlib/gfanlib_symmetriccomplex.cpp
re44b149 rf80a530 366 366 367 367 368 std::string SymmetricComplex::toStringJustRaysAndMaximalCones(int flags)const 369 { 370 PolymakeFile polymakeFile; 371 polymakeFile.create("NONAME","PolyhedralFan","PolyhedralFan",flags&FPF_xml); 372 polymakeFile.writeMatrixProperty("RAYS",vertices,true); 373 polymakeFile.writeStringProperty("MAXIMAL_CONES",toStringJustCones(getMinDim(),getMaxDim(),true,flags&FPF_group, 0,false,flags&FPF_tPlaneSort)); 374 375 std::stringstream s; 376 polymakeFile.writeStream(s); 377 return s.str(); 378 } 379 380 368 381 ZVector SymmetricComplex::fvector(bool boundedPart)const 369 382 { … … 526 539 polymakeFile.writeCardinalProperty("LINEALITY_DIM",linealitySpace.getHeight()); 527 540 // polymakeFile.writeMatrixProperty("RAYS",rays,true,comments); 528 541 polymakeFile.writeMatrixProperty("RAYS",vertices,true); 529 542 polymakeFile.writeCardinalProperty("N_RAYS",vertices.getHeight()); 530 543 -
gfanlib/gfanlib_symmetriccomplex.h
re44b149 rf80a530 87 87 void buildConeLists(bool onlyMaximal, bool compressed, std::vector<std::vector<IntVector > >*conelist/*, ZMatrix *multiplicities*/)const; 88 88 std::string toStringJustCones(int dimLow, int dimHigh, bool onlyMaximal, bool group, std::ostream *multiplicities=0, bool compressed=false, bool tPlaneSort=false)const; 89 std::string toStringJustRaysAndMaximalCones(int flags=0)const; 89 90 std::string toString(int flags=0)const; 90 91 bool isSimplicial()const; -
gfanlib/gfanlib_zfan.cpp
re44b149 rf80a530 294 294 int ZFan::getLinealityDimension()const 295 295 { 296 ensureComplex(); 297 // if(complex) 296 if(complex) 298 297 return complex->getLinDim(); 299 //if(coneCollection)300 //return coneCollection->dimensionOfLinealitySpace();298 if(coneCollection) 299 return coneCollection->dimensionOfLinealitySpace(); 301 300 assert(0); 302 301 return 0; … … 364 363 } 365 364 365 std::string ZFan::toStringJustRaysAndMaximalCones(int flags)const 366 { 367 ensureComplex(); 368 return complex->toStringJustRaysAndMaximalCones(flags); 369 } 370 366 371 /*int ZFan::getAmbientDimension()const 367 372 { -
gfanlib/gfanlib_zfan.h
re44b149 rf80a530 105 105 */ 106 106 std::string toString(int flags=0)const; 107 std::string toStringJustRaysAndMaximalCones(int flags=0)const; 107 108 /** 108 109 * Returns the dimension of the ambient space.
Note: See TracChangeset
for help on using the changeset viewer.