Changeset 0145f46 in git


Ignore:
Timestamp:
Dec 5, 2012, 6:08:54 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
0724372cdd717d461496b86f89894325fecf6cc0
Parents:
07ff965ddd552fe3a981f417b2da928dca53a8f2f659855c746f8978e0386f9dc2f9d9ecfc3d73b2
Message:
Merge pull request #219 from mmklee/factory_fix_sw

fix: wrong deletion of FLINT matrices
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqBivar.cc

    r07ff96 r0145f46  
    63646364  {
    63656365#ifdef HAVE_FLINT
    6366     nmod_mat_clear (FLINTN);
     6366    if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
     6367      nmod_mat_clear (FLINTN);
    63676368#endif
    63686369    delete [] bounds;
     
    63796380  {
    63806381#ifdef HAVE_FLINT
    6381     nmod_mat_clear (FLINTN);
     6382    if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
     6383      nmod_mat_clear (FLINTN);
    63826384#endif
    63836385    delete [] bounds;
     
    64276429      if (result.length() == nmod_mat_ncols (FLINTN))
    64286430      {
    6429         nmod_mat_clear (FLINTN);
     6431        if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
     6432          nmod_mat_clear (FLINTN);
    64306433#else
    64316434      if (result.length() == NTLN.NumCols())
     
    64416444      if (result.length() == NTLNe.NumCols())
    64426445      {
    6443 #ifdef HAVE_FLINT
    6444         nmod_mat_clear (FLINTN);
    6445 #endif
    64466446        delete [] factorsFoundIndex;
    64476447        delete [] bounds;
     
    65046504      if (result.length() == NTLNe.NumCols())
    65056505      {
    6506 #ifdef HAVE_FLINT
    6507         nmod_mat_clear (FLINTN);
    6508 #endif
    65096506        delete [] factorsFoundIndex;
    65106507        delete [] bounds;
     
    65826579    if (result.length() == NTLNe.NumCols())
    65836580    {
    6584 #ifdef HAVE_FLINT
    6585       nmod_mat_clear (FLINTN);
    6586 #endif
    65876581      delete [] bounds;
    65886582      return Union (result, smallFactors);
     
    67286722    {
    67296723#ifdef HAVE_FLINT
    6730       nmod_mat_clear (FLINTN);
     6724      if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
     6725        nmod_mat_clear (FLINTN);
    67316726#endif
    67326727      delete [] bounds;
     
    67476742    {
    67486743#ifdef HAVE_FLINT
    6749       nmod_mat_clear (FLINTN);
     6744      if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
     6745        nmod_mat_clear (FLINTN);
    67506746#endif
    67516747      result.append (bufF);
     
    67536749    }
    67546750#ifdef HAVE_FLINT
    6755     nmod_mat_clear (FLINTN);
     6751    if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
     6752      nmod_mat_clear (FLINTN);
    67566753#endif
    67576754    return Union (result, henselLiftAndLatticeRecombi (bufF, bufUniFactors,
     
    68126809      if (result.length()== NTLNe.NumCols())
    68136810      {
    6814 #ifdef HAVE_FLINT
    6815         nmod_mat_clear (FLINTN);
    6816 #endif
    68176811        delete [] bounds;
    68186812        result= Union (result, smallFactors);
     
    68716865        if (result.length() == NTLNe.NumCols())
    68726866        {
    6873 #ifdef HAVE_FLINT
    6874           nmod_mat_clear (FLINTN);
    6875 #endif
    68766867          delete [] bounds;
    68776868          result= Union (result, smallFactors);
     
    68916882  bounds= computeBounds (F, d, isIrreducible);
    68926883#ifdef HAVE_FLINT
    6893   nmod_mat_clear (FLINTN);
     6884  if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
     6885    nmod_mat_clear (FLINTN);
    68946886#endif
    68956887  if (isIrreducible)
Note: See TracChangeset for help on using the changeset viewer.