Borderbasix

uglysdp.hpp
Go to the documentation of this file.
1 template<typename typpol>
2 void remiseenforme(typpol &p)
3 {
4  for(int i=0;i<p.size;i++)
5  if(Iszero(p.nf[i]))
6  {
7  int j,jj;
8  p.nf[i]=0;
9  //On met aussi a 0 le bit correspondant dans le chams de bit
10 
11 #if 1
12  for(j=0;k<i;j++)
13  {
14  k+=nbbits[p.nfind[j]];
15  }
16  k=i-k+nbbits[p.nfind[j]];
17  //on determine la position du bit a mettre a 0
18  for(jj=0;k>0;jj++)
19  if((p.nfind[j]>>jj)&1)
20  k--;
21  p.nfind[j]&=(~(1<<jj));
22  }
23 #endif
24 }
void remiseenforme(typpol &p)
Definition: uglysdp.hpp:2
MSKconetypee MSKrealt MSKint32t MSKint32t j
Definition: mosek.h:2421
MSKint32t k
Definition: mosek.h:2713
int nbbits[256]
Definition: pol2ter.hpp:4
MSKint32t MSKint32t MSKint32t i
Definition: mosek.h:2278
int Iszero(const Scl< MPQ > &c)
Definition: Iszero.hpp:14
Home  |  Download & InstallContributions