Changeset aba90e8 in git


Ignore:
Timestamp:
Apr 29, 2013, 12:44:49 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
eb3abbb7345bcf75de0d0de288aeeba59f8c3985
Parents:
dd5ab893f9075772f5a92bae7a22a2e986ce4f10
git-author:
Martin Lee <martinlee84@web.de>2013-04-29 12:44:49+02:00
git-committer:
Martin Lee <martinlee84@web.de>2013-05-23 18:18:13+02:00
Message:
chg: changes due to rewritting
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/facBivar.h

    rdd5ab89 raba90e8  
    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}
  • factory/facFqBivar.h

    rdd5ab89 raba90e8  
    9494    return result;
    9595  }
    96   mat_ZZ M;
    97   vec_ZZ S;
     96  mpz_t * M=new mpz_t [4];
     97  mpz_init (M[0]);
     98  mpz_init (M[1]);
     99  mpz_init (M[2]);
     100  mpz_init (M[3]);
     101
     102  mpz_t * S=new mpz_t [2];
     103  mpz_init (S[0]);
     104  mpz_init (S[1]);
     105
    98106  F= compress (F, M, S);
    99107  CFList result= biFactorize (F, info);
     
    106114  normalize (result);
    107115  result.insert (Lc(G));
     116
     117  mpz_clear (M[0]);
     118  mpz_clear (M[1]);
     119  mpz_clear (M[2]);
     120  mpz_clear (M[3]);
     121  delete [] M;
     122
     123  mpz_clear (S[0]);
     124  mpz_clear (S[1]);
     125  delete [] S;
     126
    108127  return result;
    109128}
     
    228247    return result;
    229248  }
    230   mat_ZZ M;
    231   vec_ZZ S;
     249  mpz_t * M=new mpz_t [4];
     250  mpz_init (M[0]);
     251  mpz_init (M[1]);
     252  mpz_init (M[2]);
     253  mpz_init (M[3]);
     254
     255  mpz_t * S=new mpz_t [2];
     256  mpz_init (S[0]);
     257  mpz_init (S[1]);
     258
    232259  F= compress (F, M, S);
    233260
     
    254281  normalize (result);
    255282  result.insert (CFFactor (LcF, 1));
     283
     284  mpz_clear (M[0]);
     285  mpz_clear (M[1]);
     286  mpz_clear (M[2]);
     287  mpz_clear (M[3]);
     288  delete [] M;
     289
     290  mpz_clear (S[0]);
     291  mpz_clear (S[1]);
     292  delete [] S;
     293
    256294  return result;
    257295}
     
    335373    return result;
    336374  }
    337   mat_ZZ M;
    338   vec_ZZ S;
     375
     376  mpz_t * M=new mpz_t [4];
     377  mpz_init (M[0]);
     378  mpz_init (M[1]);
     379  mpz_init (M[2]);
     380  mpz_init (M[3]);
     381
     382  mpz_t * S=new mpz_t [2];
     383  mpz_init (S[0]);
     384  mpz_init (S[1]);
     385
    339386  F= compress (F, M, S);
    340387
     
    361408  normalize (result);
    362409  result.insert (CFFactor (LcF, 1));
     410
     411  mpz_clear (M[0]);
     412  mpz_clear (M[1]);
     413  mpz_clear (M[2]);
     414  mpz_clear (M[3]);
     415  delete [] M;
     416
     417  mpz_clear (S[0]);
     418  mpz_clear (S[1]);
     419  delete [] S;
     420
    363421  return result;
    364422}
     
    443501    return result;
    444502  }
    445   mat_ZZ M;
    446   vec_ZZ S;
     503
     504  mpz_t * M=new mpz_t [4];
     505  mpz_init (M[0]);
     506  mpz_init (M[1]);
     507  mpz_init (M[2]);
     508  mpz_init (M[3]);
     509
     510  mpz_t * S=new mpz_t [2];
     511  mpz_init (S[0]);
     512  mpz_init (S[1]);
     513
    447514  F= compress (F, M, S);
    448515
     
    469536  normalize (result);
    470537  result.insert (CFFactor (LcF, 1));
     538
     539  mpz_clear (M[0]);
     540  mpz_clear (M[1]);
     541  mpz_clear (M[2]);
     542  mpz_clear (M[3]);
     543  delete [] M;
     544
     545  mpz_clear (S[0]);
     546  mpz_clear (S[1]);
     547  delete [] S;
     548
    471549  return result;
    472550}
Note: See TracChangeset for help on using the changeset viewer.