Changeset 7c7a10 in git
- Timestamp:
- Jul 30, 2021, 3:35:38 PM (3 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- dd0db24b6d16696e253c280d1a996df58bc2b913
- Parents:
- 3dc7255cfd125ae424504c25faad42e6b405bbd4
- Location:
- Singular/LIB
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/bimodules.lib
r3dc7255 r7c7a10 88 88 setring save; 89 89 list L = ringlist(save); 90 if (size(ring list(save)) > 4)90 if (size(ring_list(save)) > 4) 91 91 { 92 92 L = delete(L,6); … … 156 156 setring save; 157 157 list L = ringlist(save); 158 if (size(ring list(save)) > 4)158 if (size(ring_list(save)) > 4) 159 159 {L = delete(L,6);L = delete(L,5);} 160 160 def Scom = ring(L); -
Singular/LIB/curveInv.lib
r3dc7255 r7c7a10 443 443 // Adjust the generators of Der_P to the new variables T(1),...,T(k),x(1),...,x(n) 444 444 // if there are new variables - check number of blocks 445 if(size(ring list(basering)[3]) >= 3){446 k = size(ring list(basering)[3][1][2]);445 if(size(ring_list(basering)[3]) >= 3){ 446 k = size(ring_list(basering)[3][1][2]); 447 447 Der_P = curveAdjustModule(Der_P,k); 448 448 } -
Singular/LIB/difform.lib
r3dc7255 r7c7a10 342 342 { 343 343 344 int n = size(ringlist(basering)[2]) div 2;344 int n = nvars(basering) div 2; 345 345 int k = size(I); 346 346 int i,j; … … 386 386 387 387 int n = size(#); 388 int k = size(ringlist(basering)[2]) div 2;388 int k = nvars(basering) div 2; 389 389 int i; 390 390 string gen_ord = ""; … … 526 526 EXAMPLE: example diffAlgebraListGen; shows an example" 527 527 { 528 int n = size(ringlist(basering)[2]);528 int n = nvars(basering); 529 529 int i,k,j; 530 530 int degr = -1; … … 704 704 705 705 poly f = df.form; 706 int n = size(ringlist(basering)[2]) div 2;706 int n = nvars(basering) div 2; 707 707 int i; 708 708 … … 1423 1423 1424 1424 // Degree of a difform is the degree of the poly with weights 0 for the basering variables 1425 int n = size(ringlist(Omega_R)[2]) div 2;1425 int n = nvars(Omega_R) div 2; 1426 1426 int i; 1427 1427 intvec var_weights; … … 1472 1472 setring Omega_R; 1473 1473 1474 int n = size(ringlist(Omega_R)[2]) div 2;1474 int n = nvars(Omega_R) div 2; 1475 1475 int i; 1476 1476 intvec var_weights; … … 1573 1573 { 1574 1574 // Highest degree is the nr. of variables in the basering 1575 int n = size(ringlist(basering)[2]);1575 int n = nvars(basering); 1576 1576 int i,j,k; 1577 1577 difform current_gen; … … 1886 1886 difform df = 0; 1887 1887 difform d_var; 1888 int n = size(ringlist(basering)[2]);1888 int n = nvars(basering); 1889 1889 int i; 1890 1890 … … 2069 2069 2070 2070 // Need an image for any generator 2071 if(n != size(ringlist(basering)[2]))2071 if(n != nvars(basering)) 2072 2072 { 2073 2073 ERROR("Given list has wrong size!"); -
Singular/LIB/graal.lib
r3dc7255 r7c7a10 105 105 if (L[3][1][1]!="c") 106 106 { 107 return(size(ring list(basering)[3][1][2]));107 return(size(ring_list(basering)[3][1][2])); 108 108 } 109 109 else 110 110 { 111 return(size(ring list(basering)[3][2][2]));111 return(size(ring_list(basering)[3][2][2])); 112 112 } 113 113 } -
Singular/LIB/grobcov.lib
r3dc7255 r7c7a10 5773 5773 //Options 5774 5774 list DD=#; 5775 int nax= size(ringlist(RR)[1][2]); // number of parameters + tracer variables5775 int nax=npars(RR); // number of parameters + tracer variables 5776 5776 int nuv=nvars(RR); // number of variables 5777 5777 int na=0; int nx=nax; … … 6411 6411 int nv=nvars(RR); 6412 6412 for(i=1;i<=nv;i++){vmov[size(vmov)+1]=var(i);} 6413 // int numpars= size(ringlist(RR)[1][2]);6413 // int numpars=npars(RR); 6414 6414 // int version=0; 6415 6415 // if(nv<4){version=1;} -
Singular/LIB/hodge.lib
r3dc7255 r7c7a10 62 62 if (p < 0) { ERROR("Level p must be non-negative."); } 63 63 // The base ring must be non-commutative. 64 if (size(ring list(basering)) > 4) { ERROR("Base ring must be commutative."); }64 if (size(ring_list(basering)) > 4) { ERROR("Base ring must be commutative."); } 65 65 66 66 // Default engine & option. -
Singular/LIB/ncfactor.lib
r3dc7255 r7c7a10 3479 3479 def r = basering; 3480 3480 list factorizeOutput; 3481 if (size(ring list(basering))<=4 && (attrib(r, "isLetterplaceRing") == 0) )3481 if (size(ring_list(basering))<=4 && (attrib(r, "isLetterplaceRing") == 0) ) 3482 3482 {//commutative ring case 3483 3483 dbprint(p,dbprintWhitespace + "We are in a commutative ring. Factoring h using factorize."); … … 9560 9560 {dbprintWhitespace = dbprintWhitespace + " ";} 9561 9561 dbprint(p,dbprintWhitespace+"Checking if given ring is commutative."); 9562 if (size(ring list(basering))<=4)9562 if (size(ring_list(basering))<=4) 9563 9563 {//basering was commutative 9564 9564 return(0); -
Singular/LIB/nets.lib
r3dc7255 r7c7a10 471 471 Target=string(nameof(basering)); 472 472 Output[1]="Map"+": "+Source+" --> "+Target; 473 v= size(ringlist(preimage(f))[2]);473 v=nvars(preimage(f)); 474 474 empty=size(Output[1]); 475 475 Output[1]=Output[1]+" , "+string(ringlist(preimage(f))[2][1])+" -> "+string(f[1]); … … 521 521 Target=string(nameof(basering)); 522 522 Output[1]=Map+": "+Source+" --> "+Target; 523 v= size(ringlist(preimage(f))[2]);523 v=nvars(preimage(f)); 524 524 empty=size(Output[1]); 525 525 Output[1]=Output[1]+" , "+string(ringlist(preimage(f))[2][1])+" -> "+string(f[1]); -
Singular/LIB/polybori.lib
r3dc7255 r7c7a10 351 351 int i; 352 352 int counter=0; 353 for (i=1; i<=size(ring list(r)[3]); i++)353 for (i=1; i<=size(ring_list(r)[3]); i++) 354 354 { 355 355 if (rl[3][i][1]<>"C") -
Singular/LIB/sets.lib
r3dc7255 r7c7a10 113 113 return(0); 114 114 } 115 for(int i=1;i<=size(ring list(preimage(a))[2]);i++){ //check if the two maps are the same115 for(int i=1;i<=size(ring_list(preimage(a))[2]);i++){ //check if the two maps are the same 116 116 if(a[i]!=b[i]){ //in every component 117 117 return(0); -
Singular/LIB/sing.lib
r3dc7255 r7c7a10 589 589 { 590 590 def RR=basering; 591 list RRL=ring list(RR);591 list RRL=ring_list(RR); 592 592 if(RRL[4]!=0) 593 593 { … … 693 693 { 694 694 def RR=basering; 695 list RRL=ring list(RR);695 list RRL=ring_list(RR); 696 696 if(RRL[4]!=0) 697 697 { … … 791 791 { 792 792 def RR=basering; 793 list RRL=ring list(RR);793 list RRL=ring_list(RR); 794 794 if(RRL[4]!=0) 795 795 {
Note: See TracChangeset
for help on using the changeset viewer.