Changeset a4b949 in git
- Timestamp:
- Oct 13, 2011, 9:22:08 PM (12 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/NTLconvert.cc
r14212fa ra4b949 415 415 { 416 416 //printf("convertNTLvec_pair_ZZpX_long2FacCFFList\n"); 417 CFFList r ueckgabe;417 CFFList result; 418 418 ZZ_pX polynom; 419 419 CanonicalForm bigone; … … 429 429 for (int i=e.length()-1;i>=0;i--) 430 430 { 431 r ueckgabe.append(CFFactor(convertNTLZZpX2CF(e[i].a,x),e[i].b));431 result.append(CFFactor(convertNTLZZpX2CF(e[i].a,x),e[i].b)); 432 432 } 433 433 // the multiplicity at pos 1 434 434 if (!IsOne(multi)) 435 r ueckgabe.insert(CFFactor(CanonicalForm(to_long(rep(multi))),1));436 return r ueckgabe;435 result.insert(CFFactor(CanonicalForm(to_long(rep(multi))),1)); 436 return result; 437 437 } 438 438 CFFList convertNTLvec_pair_zzpX_long2FacCFFList … … 440 440 { 441 441 //printf("convertNTLvec_pair_zzpX_long2FacCFFList\n"); 442 CFFList r ueckgabe;442 CFFList result; 443 443 zz_pX polynom; 444 444 CanonicalForm bigone; … … 454 454 for (int i=e.length()-1;i>=0;i--) 455 455 { 456 r ueckgabe.append(CFFactor(convertNTLzzpX2CF(e[i].a,x),e[i].b));456 result.append(CFFactor(convertNTLzzpX2CF(e[i].a,x),e[i].b)); 457 457 } 458 458 // the multiplicity at pos 1 459 459 if (!IsOne(multi)) 460 r ueckgabe.insert(CFFactor(CanonicalForm(to_long(rep(multi))),1));461 return r ueckgabe;460 result.insert(CFFactor(CanonicalForm(to_long(rep(multi))),1)); 461 return result; 462 462 } 463 463 … … 487 487 { 488 488 //printf("convertNTLvec_pair_GF2X_long2FacCFFList\n"); 489 CFFList r ueckgabe;489 CFFList result; 490 490 GF2X polynom; 491 491 long exponent; … … 514 514 515 515 //append the converted polynomial to the CFFList 516 r ueckgabe.append(CFFactor(bigone,exponent));517 } 518 return r ueckgabe;516 result.append(CFFactor(bigone,exponent)); 517 } 518 return result; 519 519 } 520 520 … … 727 727 CFFList convertNTLvec_pair_ZZX_long2FacCFFList(vec_pair_ZZX_long e,ZZ multi,Variable x) 728 728 { 729 CFFList r ueckgabe;729 CFFList result; 730 730 ZZX polynom; 731 731 long exponent; … … 741 741 bigone=convertNTLZZX2CF(polynom,x); 742 742 //append the converted polynomial to the list 743 r ueckgabe.append(CFFactor(bigone,exponent));743 result.append(CFFactor(bigone,exponent)); 744 744 } 745 745 // the multiplicity at pos 1 746 746 //if (!IsOne(multi)) 747 r ueckgabe.insert(CFFactor(convertZZ2CF(multi),1));747 result.insert(CFFactor(convertZZ2CF(multi),1)); 748 748 749 749 //return the converted list 750 return r ueckgabe;750 return result; 751 751 } 752 752 … … 799 799 CFFList convertNTLvec_pair_ZZpEX_long2FacCFFList(vec_pair_ZZ_pEX_long e,ZZ_pE multi,Variable x,Variable alpha) 800 800 { 801 CFFList r ueckgabe;801 CFFList result; 802 802 ZZ_pEX polynom; 803 803 long exponent; … … 832 832 } 833 833 //append the computed polynomials together with its exponent to the CFFList 834 r ueckgabe.append(CFFactor(bigone,exponent));834 result.append(CFFactor(bigone,exponent)); 835 835 } 836 836 // Start by appending the multiplicity 837 837 if (!IsOne(multi)) 838 r ueckgabe.insert(CFFactor(convertNTLZZpE2CF(multi,alpha),1));838 result.insert(CFFactor(convertNTLZZpE2CF(multi,alpha),1)); 839 839 840 840 //return the computed CFFList 841 return r ueckgabe;841 return result; 842 842 } 843 843 CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(vec_pair_zz_pEX_long e,zz_pE multi,Variable x,Variable alpha) 844 844 { 845 CFFList r ueckgabe;845 CFFList result; 846 846 zz_pEX polynom; 847 847 long exponent; … … 876 876 } 877 877 //append the computed polynomials together with its exponent to the CFFList 878 r ueckgabe.append(CFFactor(bigone,exponent));878 result.append(CFFactor(bigone,exponent)); 879 879 } 880 880 // Start by appending the multiplicity 881 881 if (!IsOne(multi)) 882 r ueckgabe.insert(CFFactor(convertNTLzzpE2CF(multi,alpha),1));882 result.insert(CFFactor(convertNTLzzpE2CF(multi,alpha),1)); 883 883 884 884 //return the computed CFFList 885 return r ueckgabe;885 return result; 886 886 } 887 887 … … 931 931 CFFList convertNTLvec_pair_GF2EX_long2FacCFFList(vec_pair_GF2EX_long e,GF2E multi,Variable x,Variable alpha) 932 932 { 933 CFFList r ueckgabe;933 CFFList result; 934 934 GF2EX polynom; 935 935 long exponent; … … 967 967 968 968 // append the computed polynomial together with its multiplicity 969 r ueckgabe.append(CFFactor(bigone,exponent));969 result.append(CFFactor(bigone,exponent)); 970 970 971 971 } 972 972 // return the computed CFFList 973 return r ueckgabe;973 return result; 974 974 } 975 975
Note: See TracChangeset
for help on using the changeset viewer.