4 template<
typename Base,
typename typstock,
typename typdump>
9 typedef typename typstock::value_type
mon;
13 current.push_back(
mon(1));
14 stockmon.push_back(
mon(1));
18 for(
int i=0;
i<maxdeg;
i++)
20 list<mon> tmpcurrent=current;
22 current.erase(current.begin(),current.end());
25 for(
typename list<mon>::iterator iter=tmpcurrent.begin();
26 iter!=tmpcurrent.end();iter++)
27 current.push_back((*iter)*mon(
i,1));
30 for(
typename list<mon>::iterator iter=current.begin();iter!=current.end();iter++)
33 stockmon.push_back(*iter);
37 current.erase(iter--);
43 template<
typename typdump,
typename Base,
typename typserv>
46 int nb_degmoitie=0,nb_deg=0,currentdeg=0;
47 typename typdump::iterator iter
48 for(iter=dump.begin();
49 currentdeg<dump.size()/2;iter++,currentdeg++)
50 nb_degmoitie+=iter->sizemonquo;
51 for(;iter!=dump.size();iter++)
52 nb_deg+=iter->sizemonquo;
53 return (nb_degmoitie*nb_degmoitie)/2<nb_deg;
56 template<
typename T,
typename typdump,
typename Base,
typename typserv>
58 ,
const typserv &serv,
int k)
66 list<mon> listmonbase;
76 template<
typename typP,
typename typdump,
typename Base,
typename typserv>
78 const typser v & serv,
int k)
93 SDPConeSetblockSize(mycone,0,tailledublock);
96 SDPConeSetADenseVecMat(mycone,numblock,
numvar,dimension,alpha,
99 DSDPCreateLPCone(solver,&lpcone);
100 LPConeSetData(lpcone,n,nnzin,row,
aval);
void compute_normforms(T *tab, const typdump &dump, const Base &b, const typserv &serv, int k)
Definition: sdpstuff.hpp:57
MSKint32t MSKint32t MSKint32t MSKint32t MSKCONST MSKrealt MSKrealt MSKCONST MSKint32t MSKCONST MSKint32t MSKCONST MSKint32t MSKCONST MSKrealt * aval
Definition: mosek.h:3714
MSKint32t * numvar
Definition: mosek.h:3018
int member(const typMk &tmpMk, const typename typMk::value_type mon)
Definition: corealgo.hpp:1391
int nbvar()
Definition: types.hpp:37
int testsdp(typdump &dump, Base &b, typserv &serv)
Definition: sdpstuff.hpp:44
MSKint32t k
Definition: mosek.h:2713
int IsinB(const mon &m, const Base &b)
Definition: IsinB3.hpp:68
Mon mon
Definition: solver_bb_floating.cpp:136
MSKint32t MSKint32t MSKint32t i
Definition: mosek.h:2278
void computestockmon_d(typstock &stockmon, const Base &b, const typdump &dump, int maxdeg)
Definition: sdpstuff.hpp:5
void sdprealrad(typP &newpol, const typdump &dump, const Base &b, const typser v &serv, int k)
Definition: sdpstuff.hpp:77
predicat::monom_t mon
Definition: types.hpp:19