MCPcopy Create free account
hub / github.com/Singular/Singular / fvector

Method fvector

gfanlib/gfanlib_symmetriccomplex.cpp:369–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368
369ZVector SymmetricComplex::fvector(bool boundedPart)const
370{
371 int min=getMinDim();
372 int dimHigh=getMaxDim();
373 if(dimHigh<min)dimHigh=min-1;
374 ZVector ret(dimHigh-min+1);
375
376 for(ConeContainer::const_iterator i=cones.begin();i!=cones.end();i++)
377 {
378 bool doAdd=!boundedPart;
379 if(boundedPart)
380 {
381 bool isBounded=true;
382 for(unsigned j=0;j<i->indices.size();j++)
383 if(vertices[i->indices[j]][0].sign()==0)isBounded=false;
384 doAdd=isBounded;
385 }
386 if(doAdd)
387 ret[i->dimension-min]+=Integer(sym.orbitSize(i->sortKey));
388 }
389 return ret;
390}
391
392
393bool SymmetricComplex::isPure()const

Callers 3

toStringMethod · 0.95
toStringMethod · 0.80
getFVectorMethod · 0.80

Calls 6

IntegerClass · 0.85
orbitSizeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
signMethod · 0.45

Tested by

no test coverage detected