Changeset d78356 in git
- Timestamp:
- Jul 4, 2020, 3:13:10 PM (3 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 89005e409e564feafbec751f5c65109638c47368
- Parents:
- 7032db2a39319cc0c7a7814003e93cae02793c5e67e34d703a09cd2924973f990bf59c52ba5c4cd2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/atkins.lib
r7032db rd78356 567 567 s3=string(t); 568 568 569 execute("a1="+s1+";");570 execute("b1="+s2+";");571 execute("t1="+s3+";");569 a1=int(a); 570 b1=int(b); 571 t1=int(t); 572 572 g1=gcd(gcd(a1,b1),t1 div a1); 573 573 setring C; -
Singular/LIB/chern.lib
r7032db rd78356 201 201 } 202 202 ring r@ = create_ring(ringlist(basering)[1], l2, "dp", "no_minpoly"); 203 execute( "map F= br@,"+varstr(br@)+";" ); // define the corresponding inclusion of rings 204 ideal V=F(V); 205 poly f=F(f); 203 ideal V=fetch(br@,V); 204 poly f=fetch(br@,f); 206 205 int i; 207 206 for(i=1; i<=nV; i++) … … 3169 3168 l13[size(l13)+1] = "u@"; 3170 3169 ring r@ = create_ring(ringlist(basering)[1], l13, "dp", "no_minpoly"); 3171 execute( "map F= br@,"+varstr(br@)+";" ); // define the corresponding inclusion of rings 3172 ideal I=F(I); // the ideal generated by I in the new ring 3170 ideal I=fetch(br@,I); // the ideal generated by I in the new ring 3173 3171 ideal J(0..n); // define n+1 ideals J(0), ... , J(n) 3174 3172 // compute the ideal of the Rees algebra of the ideal I: … … 3269 3267 l14[size(l14)+1] = "u@"; 3270 3268 ring r@ = create_ring(ringlist(basering)[1], l14, "dp", "no_minpoly"); 3271 execute( "map F= br@,"+varstr(br@)+";" ); // define the corresponding inclusion of rings 3272 ideal I=F(I); // the ideal generated by I in the new ring 3269 ideal I=fetch(br@,I); // the ideal generated by I in the new ring 3273 3270 ideal J(0..n); // define n+1 ideals J(0), ... , J(n) 3274 3271 // compute the ideal of the Rees algebra of the ideal I: … … 3404 3401 def br@=basering; // remember the base ring 3405 3402 ring r@ = create_ring(ringlist(basering)[1], "("+varstr(basering)+",homvar@)", "dp", "no_minpoly"); 3406 execute( "map F= br@,"+varstr(br@)+";" ); // define the corresponding inclusion of rings 3407 ideal I=F(I); 3403 ideal I=fetch(br@,I); 3408 3404 ideal J=homog(I, homvar@); 3409 3405 ideal JJ=J, homvar@; … … 3988 3984 l15[size(l15)+1] = "u@"; 3989 3985 ring r@ = create_ring(ringlist(basering)[1], l15, "dp", "no_minpoly"); 3990 execute( "map F= br@,"+varstr(br@)+";" ); // define the corresponding inclusion of rings 3991 ideal I=F(I); 3986 ideal I=fetch(br@,I); 3992 3987 ideal J(0..n); 3993 3988 for(i=1; i<=sz; i++) -
Singular/LIB/finvar.lib
r7032db rd78356 717 717 else 718 718 { chst=chst[i..size(chst)]; 719 execute 720 ("ring newring=(0"+chst+"),("+varstr(br)+"),("+ordstr(br)+")"); 719 list rl=ringlist(br); 720 if (typeof(rl[1]=="int")) 721 { 722 rl[1]=0; 723 } 724 else 725 { 726 rl[1][1]=0; 727 } 728 def newring=ring(rl); 729 setring newring; 721 730 722 731 } … … 726 735 minp=minp[2..size(minp)-1]; 727 736 chst=chst[i..size(chst)]; 728 execute("ring newring=(0"+chst+"),("+varstr(br)+"),("+ordstr(br)+")"); 737 list rl=ringlist(br); 738 if (typeof(rl[1]=="int")) 739 { 740 rl[1]=0; 741 } 742 else 743 { 744 rl[1][1]=0; 745 } 746 def newring=ring(rl); 747 setring newring; 729 748 execute("minpoly="+minp); 730 749 } … … 1112 1131 if (minpoly==0) 1113 1132 { if (i>size(chst)) 1114 { execute("ring newring=0,("+varstr(br)+"),("+ordstr(br)+")"); 1133 { 1134 ring newring = create_ring(0, "("+varstr(br)+")", "("+ordstr(br)+")"); 1115 1135 } 1116 1136 else 1117 1137 { chst=chst[i..size(chst)]; 1118 execute 1119 ("ring newring=(0"+chst+"),("+varstr(br)+"),("+ordstr(br)+")"); 1138 list rl=ringlist(br); 1139 if (typeof(rl[1]=="int")) 1140 { 1141 rl[1]=0; 1142 } 1143 else 1144 { 1145 rl[1][1]=0; 1146 } 1147 def newring=ring(rl); 1148 setring newring; 1120 1149 } 1121 1150 } … … 1124 1153 minp=minp[2..size(minp)-1]; 1125 1154 chst=chst[i..size(chst)]; 1126 execute("ring newring=(0"+chst+"),("+varstr(br)+"),("+ordstr(br)+")"); 1155 list rl=ringlist(br); 1156 if (typeof(rl[1]=="int")) 1157 { 1158 rl[1]=0; 1159 } 1160 else 1161 { 1162 rl[1][1]=0; 1163 } 1164 def newring=ring(rl); 1165 setring newring; 1127 1166 execute("minpoly="+minp); 1128 1167 } … … 7172 7211 { I[i]=I[i]-y(i); } 7173 7212 I=elim(I,1..n); 7174 execute("ring newring=("+charstr(br)+"),(y(1..m)),dp(m);"); 7213 list l3; 7214 for (int zz = 1; zz <= m; zz++) 7215 { 7216 l3[zz] = "y("+string(zz)+")"; 7217 } 7218 ring newring = create_ring(ringlist(br)[1], l3, "dp("+string(m)+")", "no_minpoly"); 7175 7219 if (mp!="0") 7176 7220 { execute("minpoly=number("+mp+");"); } … … 7417 7461 } 7418 7462 G=compress(G); 7419 execute("ring newring=("+charstr(br)+"),(y(1..m)),lp;"); 7463 list l4; 7464 for (int zz = 1; zz <= m; zz++) 7465 { 7466 l4[zz] = "y("+string(zz)+")"; 7467 } 7468 ring newring = create_ring(ringlist(br)[1], l4, "lp", "no_minpoly"); 7420 7469 if (mp!="0") 7421 7470 { execute("minpoly=number("+mp+");"); } -
Singular/LIB/hnoether.lib
r7032db rd78356 2016 2016 if (parstr(basering)!="") { 2017 2017 if (charstr(basering)!=string(char(basering))+","+parstr(basering)) { 2018 execute 2019 ("ring dazu=("+charstr(basering)+"),z(0.."+string(size(v)-1)+"),ls;"); 2018 list l2; 2019 for (int zz = 0; zz <= size(v)-1; zz++) 2020 { 2021 l2[size(l2)+1] = "z("+string(zz)+")"; 2022 } 2023 ring dazu = create_ring(ringlist(basering)[1], l2, "ls", "no_minpoly"); 2020 2024 } 2021 2025 else { ring dazu=char(altring),z(0..size(v)-1),ls; } … … 2024 2028 def displayring=dazu+altring; 2025 2029 */ 2026 execute("ring displayring=("+charstr(basering)+"),(z(0.."+string(size(v)-1)+"),"+varstr(basering)+"),(ls("+string(size(v))+"),"+ordstr(basering)+");"); 2030 list l1; 2031 for (int zz = 0; zz <= size(v)-1; zz++) 2032 { 2033 l1[size(l1)+1] = "z("+string(zz)+")"; 2034 } 2035 list l2=ringlist(basering)[2]; 2036 l1 = l1 + l2; 2037 ring displayring = create_ring(ringlist(basering)[1], l1, "(ls("+string(size(v))+"),"+ordstr(basering)+")", "no_minpoly"); 2027 2038 // End change by T. Keilen 2028 2039 ////////////////////////////////////////////////////////////// -
factory/facFactorize.cc
r67e34d rd78356 45 45 TIMING_DEFINE_PRINT(fac_compress) 46 46 47 #ifdef HAVE_NTL48 47 CFList evalPoints (const CanonicalForm& F, CFList& eval, Evaluation& E) 49 48 { … … 154 153 } 155 154 155 #ifdef HAVE_NTL // ratBiSqrfFactorize 156 156 void 157 157 factorizationWRTDifferentSecondVars (const CanonicalForm& A, CFList*& Aeval, … … 190 190 } 191 191 } 192 192 #endif 193 194 #ifdef HAVE_NTL // ratBiSqrfFactorize 193 195 CFList 194 196 multiFactorize (const CanonicalForm& F, const Variable& v) … … 829 831 return factors; 830 832 } 831 832 833 #endif -
factory/facFqBivar.cc
r67e34d rd78356 155 155 } 156 156 157 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 157 158 CFList 158 159 uniFactorizer (const CanonicalForm& A, const Variable& alpha, const bool& GF) … … 360 361 return uniFactors; 361 362 } 363 #endif 362 364 363 365 #if defined(HAVE_NTL) || defined(HAVE_FLINT) … … 800 802 } 801 803 804 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 802 805 Variable chooseExtension (const Variable & alpha, const Variable& beta, int k) 803 806 { … … 844 847 return rootOf (newMipo); 845 848 } 849 #endif 846 850 847 851 void … … 1461 1465 #endif 1462 1466 1463 #if ndef HAVE_FLINT1467 #ifdef HAVE_NTL 1464 1468 long isReduced (const mat_zz_p& M) 1465 1469 { … … 1499 1503 #endif 1500 1504 1501 #ifdef HAVE_NTL // mat_zz_pE1505 #ifdef HAVE_NTL 1502 1506 long isReduced (const mat_zz_pE& M) 1503 1507 { … … 1518 1522 #endif 1519 1523 1520 #if ndef HAVE_FLINT1524 #ifdef HAVE_NTL 1521 1525 int * extractZeroOneVecs (const mat_zz_p& M) 1522 1526 { … … 1570 1574 #endif 1571 1575 1572 #ifdef HAVE_NTL // mat_zz_pE1576 #ifdef HAVE_NTL 1573 1577 int * extractZeroOneVecs (const mat_zz_pE& M) 1574 1578 { … … 1596 1600 #endif 1597 1601 1598 #ifdef HAVE_NTL // mat_zz_pE1602 #ifdef HAVE_NTL 1599 1603 void 1600 1604 reconstructionTry (CFList& reconstructedFactors, CanonicalForm& F, const CFList& … … 1680 1684 #endif 1681 1685 1682 #if ndef HAVE_FLINT1686 #ifdef HAVE_NTL 1683 1687 void 1684 1688 reconstructionTry (CFList& reconstructedFactors, CanonicalForm& F, const CFList& … … 1848 1852 #endif 1849 1853 1850 #ifdef HAVE_NTL //mat_zz_pE1854 #ifdef HAVE_NTL 1851 1855 CFList 1852 1856 reconstruction (CanonicalForm& G, CFList& factors, int* zeroOneVecs, int … … 1899 1903 #endif 1900 1904 1901 #ifdef HAVE_NTL // mat_zz_pE1905 #ifdef HAVE_NTL 1902 1906 CFList 1903 1907 monicReconstruction (CanonicalForm& G, CFList& factors, int* zeroOneVecs, … … 1952 1956 #endif 1953 1957 1954 #if ndef HAVE_FLINT1958 #ifdef HAVE_NTL 1955 1959 CFList 1956 1960 extReconstruction (CanonicalForm& G, CFList& factors, int* zeroOneVecs, int … … 2114 2118 #endif 2115 2119 2116 #if ndef HAVE_FLINT2120 #ifdef HAVE_NTL 2117 2121 CFList 2118 2122 reconstruction (CanonicalForm& G, CFList& factors, int* zeroOneVecs, … … 2216 2220 #endif 2217 2221 2218 #if ndef HAVE_FLINT2222 #ifdef HAVE_NTL 2219 2223 void 2220 2224 extReconstructionTry (CFList& reconstructedFactors, CanonicalForm& F, const … … 2476 2480 #endif 2477 2481 2478 #ifndef HAVE_FLINT 2479 #ifdef HAVE_NTL // logarithmicDerivative 2482 #ifdef HAVE_NTL 2480 2483 //over Fp 2481 2484 int … … 2600 2603 return l; 2601 2604 } 2602 #endif2603 2605 #endif 2604 2606 … … 2742 2744 #endif 2743 2745 2744 #ifndef HAVE_FLINT 2745 #ifdef HAVE_NTL //logarithmicDerivative 2746 #ifdef HAVE_NTL 2746 2747 //over field extension 2747 2748 int … … 2939 2940 return l; 2940 2941 } 2941 #endif2942 2942 #endif 2943 2943
Note: See TracChangeset
for help on using the changeset viewer.