Changeset f80a530 in git


Ignore:
Timestamp:
Jul 3, 2013, 4:11:47 PM (11 years ago)
Author:
Yue Ren <ren@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
Message:
chg: print routines for polyhedral fans

corresponds to 7add05a9a5fb7b1e61023a1b6873e366d004d453 in master
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • dyn_modules/callgfanlib/bbfan.cc

    re44b149 rf80a530  
    4545  {
    4646    gfan::ZFan* zf = (gfan::ZFan*)d;
    47     std::string s = zf->toString();
     47    std::string s = zf->toStringJustRaysAndMaximalCones();
    4848    return omStrDup(s.c_str());
    4949  }
     
    718718}
    719719
    720 gfan::ZMatrix rays(gfan::ZFan* zf)
     720gfan::ZMatrix rays(const gfan::ZFan* const zf)
    721721{
    722722  gfan::ZMatrix rays(0,zf->getAmbientDimension());
  • dyn_modules/callgfanlib/bbfan.h

    re44b149 rf80a530  
    1616int getLinealityDimension(gfan::ZFan* zf);
    1717int isSimplicial(gfan::ZFan* zf);
    18 gfan::Matrix<gfan::Integer> rays(gfan::ZFan* zf);
     18gfan::Matrix<gfan::Integer> rays(const gfan::ZFan* const zf);
    1919
    2020#endif
  • gfanlib/gfanlib_polymakefile.cpp

    re44b149 rf80a530  
    170170  else
    171171    {
    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());
    175175
    176176      for(list<PolymakeProperty>::const_iterator i=properties.begin();i!=properties.end();i++)
     
    200200  else
    201201    {
    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;
    205205
    206206      for(list<PolymakeProperty>::const_iterator i=properties.begin();i!=properties.end();i++)
  • gfanlib/gfanlib_symmetriccomplex.cpp

    re44b149 rf80a530  
    366366
    367367
     368std::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
    368381ZVector SymmetricComplex::fvector(bool boundedPart)const
    369382{
     
    526539    polymakeFile.writeCardinalProperty("LINEALITY_DIM",linealitySpace.getHeight());
    527540    //    polymakeFile.writeMatrixProperty("RAYS",rays,true,comments);
    528         polymakeFile.writeMatrixProperty("RAYS",vertices,true);
     541    polymakeFile.writeMatrixProperty("RAYS",vertices,true);
    529542    polymakeFile.writeCardinalProperty("N_RAYS",vertices.getHeight());
    530543
  • gfanlib/gfanlib_symmetriccomplex.h

    re44b149 rf80a530  
    8787  void buildConeLists(bool onlyMaximal, bool compressed, std::vector<std::vector<IntVector > >*conelist/*, ZMatrix *multiplicities*/)const;
    8888  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;
    8990  std::string toString(int flags=0)const;
    9091  bool isSimplicial()const;
  • gfanlib/gfanlib_zfan.cpp

    re44b149 rf80a530  
    294294  int ZFan::getLinealityDimension()const
    295295  {
    296     ensureComplex();
    297     // if(complex)
     296    if(complex)
    298297      return complex->getLinDim();
    299     // if(coneCollection)
    300     //   return coneCollection->dimensionOfLinealitySpace();
     298    if(coneCollection)
     299      return coneCollection->dimensionOfLinealitySpace();
    301300    assert(0);
    302301    return 0;
     
    364363}
    365364
     365std::string ZFan::toStringJustRaysAndMaximalCones(int flags)const
     366{
     367  ensureComplex();
     368  return complex->toStringJustRaysAndMaximalCones(flags);
     369}
     370
    366371/*int ZFan::getAmbientDimension()const
    367372{
  • gfanlib/gfanlib_zfan.h

    re44b149 rf80a530  
    105105   */
    106106  std::string toString(int flags=0)const;
     107  std::string toStringJustRaysAndMaximalCones(int flags=0)const;
    107108  /**
    108109   * Returns the dimension of the ambient space.
Note: See TracChangeset for help on using the changeset viewer.