Changeset a4b949 in git


Ignore:
Timestamp:
Oct 13, 2011, 9:22:08 PM (12 years ago)
Author:
Niels Ranosch <ranosch@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
82db91acfc327c4583f75ec07981145804778f97
Parents:
14212fa342ce39308f53a23f26a3db6a7646a3fe
git-author:
Niels Ranosch <ranosch@mfo.de>2011-10-13 21:22:08+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:14:04+01:00
Message:
FIX: variables should have English names, e.g. rueckgabe -> result
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/NTLconvert.cc

    r14212fa ra4b949  
    415415{
    416416  //printf("convertNTLvec_pair_ZZpX_long2FacCFFList\n");
    417   CFFList rueckgabe;
     417  CFFList result;
    418418  ZZ_pX polynom;
    419419  CanonicalForm bigone;
     
    429429  for (int i=e.length()-1;i>=0;i--)
    430430  {
    431     rueckgabe.append(CFFactor(convertNTLZZpX2CF(e[i].a,x),e[i].b));
     431    result.append(CFFactor(convertNTLZZpX2CF(e[i].a,x),e[i].b));
    432432  }
    433433  // the multiplicity at pos 1
    434434  if (!IsOne(multi))
    435     rueckgabe.insert(CFFactor(CanonicalForm(to_long(rep(multi))),1));
    436   return rueckgabe;
     435    result.insert(CFFactor(CanonicalForm(to_long(rep(multi))),1));
     436  return result;
    437437}
    438438CFFList convertNTLvec_pair_zzpX_long2FacCFFList
     
    440440{
    441441  //printf("convertNTLvec_pair_zzpX_long2FacCFFList\n");
    442   CFFList rueckgabe;
     442  CFFList result;
    443443  zz_pX polynom;
    444444  CanonicalForm bigone;
     
    454454  for (int i=e.length()-1;i>=0;i--)
    455455  {
    456     rueckgabe.append(CFFactor(convertNTLzzpX2CF(e[i].a,x),e[i].b));
     456    result.append(CFFactor(convertNTLzzpX2CF(e[i].a,x),e[i].b));
    457457  }
    458458  // the multiplicity at pos 1
    459459  if (!IsOne(multi))
    460     rueckgabe.insert(CFFactor(CanonicalForm(to_long(rep(multi))),1));
    461   return rueckgabe;
     460    result.insert(CFFactor(CanonicalForm(to_long(rep(multi))),1));
     461  return result;
    462462}
    463463
     
    487487{
    488488  //printf("convertNTLvec_pair_GF2X_long2FacCFFList\n");
    489   CFFList rueckgabe;
     489  CFFList result;
    490490  GF2X polynom;
    491491  long exponent;
     
    514514
    515515    //append the converted polynomial to the CFFList
    516     rueckgabe.append(CFFactor(bigone,exponent));
    517   }
    518   return rueckgabe;
     516    result.append(CFFactor(bigone,exponent));
     517  }
     518  return result;
    519519}
    520520
     
    727727CFFList convertNTLvec_pair_ZZX_long2FacCFFList(vec_pair_ZZX_long e,ZZ multi,Variable x)
    728728{
    729   CFFList rueckgabe;
     729  CFFList result;
    730730  ZZX polynom;
    731731  long exponent;
     
    741741    bigone=convertNTLZZX2CF(polynom,x);
    742742    //append the converted polynomial to the list
    743     rueckgabe.append(CFFactor(bigone,exponent));
     743    result.append(CFFactor(bigone,exponent));
    744744  }
    745745  // the multiplicity at pos 1
    746746  //if (!IsOne(multi))
    747     rueckgabe.insert(CFFactor(convertZZ2CF(multi),1));
     747    result.insert(CFFactor(convertZZ2CF(multi),1));
    748748
    749749  //return the converted list
    750   return rueckgabe;
     750  return result;
    751751}
    752752
     
    799799CFFList convertNTLvec_pair_ZZpEX_long2FacCFFList(vec_pair_ZZ_pEX_long e,ZZ_pE multi,Variable x,Variable alpha)
    800800{
    801   CFFList rueckgabe;
     801  CFFList result;
    802802  ZZ_pEX polynom;
    803803  long exponent;
     
    832832    }
    833833    //append the computed polynomials together with its exponent to the CFFList
    834     rueckgabe.append(CFFactor(bigone,exponent));
     834    result.append(CFFactor(bigone,exponent));
    835835  }
    836836  // Start by appending the multiplicity
    837837  if (!IsOne(multi))
    838     rueckgabe.insert(CFFactor(convertNTLZZpE2CF(multi,alpha),1));
     838    result.insert(CFFactor(convertNTLZZpE2CF(multi,alpha),1));
    839839
    840840  //return the computed CFFList
    841   return rueckgabe;
     841  return result;
    842842}
    843843CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(vec_pair_zz_pEX_long e,zz_pE multi,Variable x,Variable alpha)
    844844{
    845   CFFList rueckgabe;
     845  CFFList result;
    846846  zz_pEX polynom;
    847847  long exponent;
     
    876876    }
    877877    //append the computed polynomials together with its exponent to the CFFList
    878     rueckgabe.append(CFFactor(bigone,exponent));
     878    result.append(CFFactor(bigone,exponent));
    879879  }
    880880  // Start by appending the multiplicity
    881881  if (!IsOne(multi))
    882     rueckgabe.insert(CFFactor(convertNTLzzpE2CF(multi,alpha),1));
     882    result.insert(CFFactor(convertNTLzzpE2CF(multi,alpha),1));
    883883
    884884  //return the computed CFFList
    885   return rueckgabe;
     885  return result;
    886886}
    887887
     
    931931CFFList convertNTLvec_pair_GF2EX_long2FacCFFList(vec_pair_GF2EX_long e,GF2E multi,Variable x,Variable alpha)
    932932{
    933   CFFList rueckgabe;
     933  CFFList result;
    934934  GF2EX polynom;
    935935  long exponent;
     
    967967
    968968    // append the computed polynomial together with its multiplicity
    969     rueckgabe.append(CFFactor(bigone,exponent));
     969    result.append(CFFactor(bigone,exponent));
    970970
    971971  }
    972972  // return the computed CFFList
    973   return rueckgabe;
     973  return result;
    974974}
    975975
Note: See TracChangeset for help on using the changeset viewer.