Changeset 26b713 in git for gfanlib/gfanlib_zfan.cpp
- Timestamp:
- Feb 13, 2013, 4:23:42 PM (11 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 81384bd682dd5f3d82dcdbb5f9b03b8e16f90d39
- Parents:
- 7b8818e8f761639646d742a3b11bca3b5a9408da
- git-author:
- Yue Ren <ren@mathematik.uni-kl.de>2013-02-13 16:23:42+01:00
- git-committer:
- Yue Ren <ren@mathematik.uni-kl.de>2013-03-14 15:32:21+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gfanlib/gfanlib_zfan.cpp
r7b8818 r26b713 31 31 int ZFan::numberOfConesOfDimension(int d, bool orbit, bool maximal)const 32 32 { 33 this->ensureComplex(); 33 34 return numberOf(table(orbit,maximal),d); 34 35 } … … 202 203 ZFan::ZFan(ZFan const& f): 203 204 complex(0), 204 coneCollection(0) 205 coneCollection(0), 206 cones(f.table(0,0)), 207 maximalCones(f.table(0,1)), 208 coneOrbits(f.table(1,0)), 209 maximalConeOrbits(f.table(1,1)) 205 210 { 206 211 if(f.coneCollection) … … 269 274 return 0; 270 275 } 276 int ZFan::getCodimension()const 277 { 278 if(complex) 279 return complex->getAmbientDimension()-complex->getMaxDim(); 280 if(coneCollection) 281 return coneCollection->getAmbientDimension()-coneCollection->getMaxDimension(); 282 assert(0); 283 return 0; 284 } 285 int ZFan::getDimension()const 286 { 287 if(complex) 288 return complex->getMaxDim(); 289 if(coneCollection) 290 return coneCollection->getMaxDimension(); 291 assert(0); 292 return 0; 293 } 294 int ZFan::getLinealityDimension()const 295 { 296 if(complex) 297 return complex->getLinDim(); 298 if(coneCollection) 299 return coneCollection->dimensionOfLinealitySpace(); 300 assert(0); 301 return 0; 302 } 303 ZVector ZFan::getFVector()const 304 { 305 ensureComplex(); 306 return complex->fvector(); 307 } 308 bool ZFan::isSimplicial()const 309 { 310 ensureComplex(); 311 return complex->isSimplicial(); 312 } 313 bool ZFan::isPure()const 314 { 315 ensureComplex(); 316 return complex->isPure(); 317 } 318 bool ZFan::isComplete()const 319 { 320 ensureConeCollection(); 321 if(coneCollection->isEmpty()) 322 return 0; 323 int ambientdim=coneCollection->getAmbientDimension(); 324 int linealitydim=coneCollection->dimensionOfLinealitySpace(); 325 return (ambientdim==linealitydim); 326 } 271 327 void ZFan::insert(ZCone const &c) 272 328 { … … 274 330 killComplex(); 275 331 coneCollection->insert(c); 332 } 333 void ZFan::remove(ZCone const &c) 334 { 335 ensureConeCollection(); 336 killComplex(); 337 coneCollection->remove(c); 276 338 } 277 339
Note: See TracChangeset
for help on using the changeset viewer.