Changeset c1b9927 in git for factory/facFqBivar.cc


Ignore:
Timestamp:
Jun 7, 2011, 3:27:18 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
639652f186091509059ccc76f18852db93c1b988
Parents:
6e2ef0e6c1f75468f4ae12cfb9e5273eb4aa81c1
Message:
- removed some unsed variables
- never put static inline routine without a body in a .h file



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

Legend:

Unmodified
Added
Removed
  • factory/facFqBivar.cc

    r6e2ef0e rc1b9927  
    793793  CanonicalForm gamma= info.getGamma();
    794794  CanonicalForm delta= info.getDelta();
    795   int k= info.getGFDegree();
    796795  bool extension= info.isInExtension();
    797796
     
    900899    {
    901900      if (!IsZero (M (i,j)))
    902         nonZero++; 
     901        nonZero++;
    903902    }
    904903    if (nonZero != 1)
     
    10181017{
    10191018  Variable y= Variable (2);
    1020   Variable x= Variable (1); 
     1019  Variable x= Variable (1);
    10211020  CanonicalForm yToL= power (y, liftBound);
    10221021  for (long i= 1; i <= N.NumCols(); i++)
     
    12191218    {
    12201219      CFList source, dest;
    1221      
     1220
    12221221      if (!isInExtension (buf2, gamma, k, delta, source, dest))
    12231222      {
     
    12921291
    12931292void
    1294 extReconstructionTry (CFList& reconstructedFactors, CanonicalForm& F, const 
     1293extReconstructionTry (CFList& reconstructedFactors, CanonicalForm& F, const
    12951294                      CFList& factors, const int liftBound, int& factorsFound,
    12961295                      int*& factorsFoundIndex, mat_zz_p& N, bool beenInThres,
     
    16641663                      )
    16651664{
    1666   bool GF= (CFFactory::gettype () == GaloisFieldDomain);
    16671665  CanonicalForm LCF= LC (F, 1);
    16681666  CFArray *A= new CFArray [factors.length() - 1];
     
    17741772                           )
    17751773{
    1776   bool GF= (CFFactory::gettype () == GaloisFieldDomain);
    17771774  CanonicalForm LCF= LC (F, 1);
    17781775  CFArray *A= new CFArray [factors.length() - 1];
     
    19511948      if (isReduced (NTLN))
    19521949      {
    1953         int d= degree (F) + 1;
    19541950        int * factorsFoundIndex= new int [NTLN.NumCols()];
    19551951        for (long i= 0; i < NTLN.NumCols(); i++)
     
    20752071      if (isReduced (NTLN))
    20762072      {
    2077         int d= degree (F) + 1;
    20782073        int * factorsFoundIndex= new int [NTLN.NumCols()];
    20792074        for (long i= 0; i < NTLN.NumCols(); i++)
     
    22632258      if (isReduced (NTLN))
    22642259      {
    2265       int d= degree (F) + 1;
    22662260      int * factorsFoundIndex= new int [NTLN.NumCols()];
    22672261      for (long i= 0; i < NTLN.NumCols(); i++)
     
    25052499      if (isReduced (NTLN))
    25062500      {
    2507         int d= degree (F) + 1;
    25082501        int * factorsFoundIndex= new int [NTLN.NumCols()];
    25092502        for (long i= 0; i < NTLN.NumCols(); i++)
     
    26292622    if (degree (bufF) + 1 + degree (LC (bufF, 1)) < oldL && result.length() > 0)
    26302623    {
    2631       F= bufF; 
     2624      F= bufF;
    26322625      factors= bufUniFactors;
    26332626      delete [] A;
     
    27252718    if (degree (bufF) + 1 + degree (LC (bufF, 1)) < l && result.length() > 0)
    27262719    {
    2727       F= bufF; 
     2720      F= bufF;
    27282721      factors= bufUniFactors;
    27292722      delete [] A;
     
    27702763  CanonicalForm primElemAlpha= info.getGamma();
    27712764  CanonicalForm imPrimElemAlpha= info.getDelta();
    2772   bool reduced= false;
    27732765  if (NTLN.NumRows() != factors.length()) //refined factors
    27742766    ident (NTLN, factors.length());
     
    27872779      imBasis= imBasis (power (y, degMipo), y);
    27882780      imBasis= imBasis (y, gamma);
    2789       int ind= oldL*degMipo - 1;
    27902781      CFIterator iter= imBasis;
    27912782      for (; iter.hasTerms(); iter++)
     
    28012792    {
    28022793      for (int i= 0; i < factors.length(); i++, j++)
    2803         A[i]= logarithmicDerivative (F, j.getItem(), oldL, oldL2, bufQ[i], 
     2794        A[i]= logarithmicDerivative (F, j.getItem(), oldL, oldL2, bufQ[i],
    28042795                                     bufQ[i]);
    28052796    }
     
    28942885    if (degree (bufF) + 1 + degree (LC (bufF, 1)) < l && result.length() > 0)
    28952886    {
    2896       F= bufF; 
     2887      F= bufF;
    28972888      factors= bufUniFactors;
    28982889      return result;
     
    30133004    if (degree (bufF) + 1 + degree (LC (bufF, 1)) < l && result.length() > 0)
    30143005    {
    3015       F= bufF; 
     3006      F= bufF;
    30163007      factors= bufUniFactors;
    30173008      delete [] A;
     
    33203311  int stepSize= 8;
    33213312  l += tmax (tmin (8, degree (F) + 1 + degree (LC (F, 1))-l),2);
    3322   bool reduced= false;
    33233313  Variable gamma= info.getBeta();
    33243314  CanonicalForm primElemAlpha= info.getGamma();
     
    35123502  int stepSize= 8; //TODO choose better step size?
    35133503  l += tmax (tmin (8, degree (F) + 1 + degree (LC (F, 1))-l), 2);
    3514   bool reduced= false;
    35153504  if (NTLN.NumRows() != factors.length()) //refined factors
    35163505    ident (NTLN, factors.length());
     
    36603649  Variable y= Variable (2);
    36613650  CanonicalForm LCF= LC (F, 1);
    3662   for (long i= 1; i <= NTLN.NumCols(); i++) 
     3651  for (long i= 1; i <= NTLN.NumCols(); i++)
    36633652  {
    36643653    CFListIterator iter= factors;
     
    38893878
    38903879CFList
    3891 sieveSmallFactors (const CanonicalForm& G, CFList& uniFactors, DegreePattern& 
     3880sieveSmallFactors (const CanonicalForm& G, CFList& uniFactors, DegreePattern&
    38923881                   degPat, CanonicalForm& H, CFList& diophant, CFArray& Pi,
    38933882                   CFMatrix& M, bool& success, int d
     
    39163905  }
    39173906  int sizeOldF= size (F);
    3918   int sizeF;
    39193907  CFList result;
    39203908  CanonicalForm bufF= F;
     
    39703958  CanonicalForm shiftedF= F (y - evaluation, y);
    39713959  int sizeOldF= size (shiftedF);
    3972   int sizeF;
    39733960  CFList result;
    39743961  CanonicalForm bufF= shiftedF;
     
    41204107      ident (NTLNe, bufUniFactors.length() - 1);
    41214108  }
    4122   bool wasInBounds= false;
    41234109  bool irreducible= false;
    41244110  CFArray bufQ= CFArray (bufUniFactors.length() - 1);
     
    42434229    if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
    42444230    {
    4245       factorsFoundIndex= new int [NTLN.NumCols()]; 
     4231      factorsFoundIndex= new int [NTLN.NumCols()];
    42464232      for (long i= 0; i < NTLN.NumCols(); i++)
    42474233        factorsFoundIndex[i]= 0;
     
    42494235    else
    42504236    {
    4251       factorsFoundIndex= new int [NTLNe.NumCols()]; 
     4237      factorsFoundIndex= new int [NTLNe.NumCols()];
    42524238      for (long i= 0; i < NTLNe.NumCols(); i++)
    42534239        factorsFoundIndex[i]= 0;
     
    42934279      if (NTLN.NumCols() < bufUniFactors.length())
    42944280      {
    4295         refineAndRestartLift (F, NTLN, liftBound, l, bufUniFactors, M, Pi, 
     4281        refineAndRestartLift (F, NTLN, liftBound, l, bufUniFactors, M, Pi,
    42964282                              diophant
    42974283                             );
     
    44824468    if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
    44834469    {
    4484       if (result.length()== NTLN.NumCols()) 
     4470      if (result.length()== NTLN.NumCols())
    44854471      {
    44864472        delete [] bounds;
     
    44914477    else
    44924478    {
    4493       if (result.length()== NTLNe.NumCols()) 
     4479      if (result.length()== NTLNe.NumCols())
    44944480      {
    44954481        delete [] bounds;
     
    45244510      if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
    45254511      {
    4526         if (result.length() == NTLN.NumCols()) 
     4512        if (result.length() == NTLN.NumCols())
    45274513        {
    45284514          delete [] bounds;
     
    45334519      else
    45344520      {
    4535         if (result.length() == NTLNe.NumCols()) 
     4521        if (result.length() == NTLNe.NumCols())
    45364522        {
    45374523          delete [] bounds;
     
    46404626                              )
    46414627{
    4642   bool GF= (CFFactory::gettype()==GaloisFieldDomain);
    46434628  CanonicalForm evaluation= eval;
    46444629  ExtensionInfo info= extInfo;
     
    47664751
    47674752  ident (NTLN, bufUniFactors.length() - 1);
    4768   bool wasInBounds= false;
    47694753  bool irreducible= false;
    47704754  CFArray bufQ= CFArray (bufUniFactors.length() - 1);
     
    48414825  {
    48424826    int * factorsFoundIndex;
    4843       factorsFoundIndex= new int [NTLN.NumCols()]; 
     4827      factorsFoundIndex= new int [NTLN.NumCols()];
    48444828      for (long i= 0; i < NTLN.NumCols(); i++)
    48454829        factorsFoundIndex[i]= 0;
     
    49894973                                );
    49904974
    4991     if (result.length()== NTLN.NumCols()) 
     4975    if (result.length()== NTLN.NumCols())
    49924976    {
    49934977      delete [] bounds;
     
    50044988                                                     dest
    50054989                                                    );
    5006       if (result.length()== NTLN.NumCols()) 
     4990      if (result.length()== NTLN.NumCols())
    50074991      {
    50084992        delete [] bounds;
     
    54155399    CFList earlyFactors;
    54165400    TIMING_START (fac_hensel_lift);
    5417     uniFactors= henselLiftAndEarly 
     5401    uniFactors= henselLiftAndEarly
    54185402               (A, earlySuccess, earlyFactors, degs, liftBound,
    54195403                uniFactors, info, evaluation);
Note: See TracChangeset for help on using the changeset viewer.