Changeset dad0bc5 in git for factory/NTLconvert.cc


Ignore:
Timestamp:
Dec 9, 2005, 9:35:38 AM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
172b7ae49955a6c96c685cbe68ee3f257d89bd46
Parents:
1b82a2e051a986276fd759237c823aecfb97b2be
Message:
*hannes: factorization of homog.polys, SORT for factorize


git-svn-id: file:///usr/local/Singular/svn/trunk@8834 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/NTLconvert.cc

    r1b82a2 rdad0bc5  
    1 /* $Id: NTLconvert.cc,v 1.13 2004-01-19 11:26:19 Singular Exp $ */
     1/* $Id: NTLconvert.cc,v 1.14 2005-12-09 08:35:37 Singular Exp $ */
    22#include <config.h>
    33
     
    419419}
    420420
    421 int NTLcmpCF( const CFFactor & f, const CFFactor & g )
    422 {
    423   if (f.exp() > g.exp()) return 1;
    424   if (f.exp() < g.exp()) return 0;
    425   if (f.factor() > g.factor()) return 1;
    426   return 0;
    427 }
    428 
    429421////////////////////////////////////////////////////////////////////////////////
    430422// NAME: convertNTLvec_pair_ZZpX_long2FacCFFList                              //
     
    468460    rueckgabe.append(CFFactor(convertNTLZZpX2CF(e[i].a,x),e[i].b));
    469461  }
    470   if(isOn(SW_USE_NTL_SORT)) rueckgabe.sort(NTLcmpCF);
    471462  // the multiplicity at pos 1
    472463  if (!IsOne(multi))
     
    495486    rueckgabe.append(CFFactor(convertNTLzzpX2CF(e[i].a,x),e[i].b));
    496487  }
    497   if(isOn(SW_USE_NTL_SORT)) rueckgabe.sort(NTLcmpCF);
    498488  // the multiplicity at pos 1
    499489  if (!IsOne(multi))
     
    556546    rueckgabe.append(CFFactor(bigone,exponent));
    557547  }
    558   if(isOn(SW_USE_NTL_SORT)) rueckgabe.sort(NTLcmpCF);
    559548  return rueckgabe;
    560549}
     
    777766    rueckgabe.append(CFFactor(bigone,exponent));
    778767  }
    779   if(isOn(SW_USE_NTL_SORT)) rueckgabe.sort(NTLcmpCF);
    780768  // the multiplicity at pos 1
    781769  //if (!IsOne(multi))
     
    869857    rueckgabe.append(CFFactor(bigone,exponent));
    870858  }
    871   if(isOn(SW_USE_NTL_SORT)) rueckgabe.sort(NTLcmpCF);
    872859  // Start by appending the multiplicity
    873860  if (!IsOne(multi))
     
    914901    rueckgabe.append(CFFactor(bigone,exponent));
    915902  }
    916   if(isOn(SW_USE_NTL_SORT)) rueckgabe.sort(NTLcmpCF);
    917903  // Start by appending the multiplicity
    918904  if (!IsOne(multi))
     
    1007993
    1008994  }
    1009   if(isOn(SW_USE_NTL_SORT)) rueckgabe.sort(NTLcmpCF);
    1010995  // return the computed CFFList
    1011996  return rueckgabe;
Note: See TracChangeset for help on using the changeset viewer.