Changeset eb3abbb in git for factory/facBivar.h


Ignore:
Timestamp:
May 23, 2013, 7:20:14 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
02d3d641de579bc515b51a2769fe96f9149cd06755150e5fbf40e9e0fa5d2c2fe5efd309f4ab2e12
Parents:
e2c9b2fd1bc99d892a2a72d1c9e5046a794ac330aba90e858d998d23e9f343db0210fff2a167df2f
Message:
Merge pull request #329 from mmklee/factory_newtonpolygon_sw

Factory newtonpolygon sw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facBivar.h

    re2c9b2 reb3abbb  
    8383    return result;
    8484  }
    85   mat_ZZ M;
    86   vec_ZZ S;
     85
     86  mpz_t * M=new mpz_t [4];
     87  mpz_init (M[0]);
     88  mpz_init (M[1]);
     89  mpz_init (M[2]);
     90  mpz_init (M[3]);
     91
     92  mpz_t * S=new mpz_t [2];
     93  mpz_init (S[0]);
     94  mpz_init (S[1]);
     95
    8796  F= compress (F, M, S);
    8897  CFList result= biFactorize (F, v);
     
    98107    result.insert (Lc (G));
    99108  }
     109
     110  mpz_clear (M[0]);
     111  mpz_clear (M[1]);
     112  mpz_clear (M[2]);
     113  mpz_clear (M[3]);
     114  delete [] M;
     115
     116  mpz_clear (S[0]);
     117  mpz_clear (S[1]);
     118  delete [] S;
     119
    100120  return result;
    101121}
     
    197217    return result;
    198218  }
    199   mat_ZZ M;
    200   vec_ZZ S;
     219
     220  mpz_t * M=new mpz_t [4];
     221  mpz_init (M[0]);
     222  mpz_init (M[1]);
     223  mpz_init (M[2]);
     224  mpz_init (M[3]);
     225
     226  mpz_t * S=new mpz_t [2];
     227  mpz_init (S[0]);
     228  mpz_init (S[1]);
     229
    201230  F= compress (F, M, S);
    202231  TIMING_START (fac_bi_sqrf);
     
    233262    result.insert (CFFactor (LcF, 1));
    234263  }
     264
     265  mpz_clear (M[0]);
     266  mpz_clear (M[1]);
     267  mpz_clear (M[2]);
     268  mpz_clear (M[3]);
     269  delete [] M;
     270
     271  mpz_clear (S[0]);
     272  mpz_clear (S[1]);
     273  delete [] S;
     274
    235275  return result;
    236276}
Note: See TracChangeset for help on using the changeset viewer.