Changeset 7c7a10 in git


Ignore:
Timestamp:
Jul 30, 2021, 3:35:38 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
dd0db24b6d16696e253c280d1a996df58bc2b913
Parents:
3dc7255cfd125ae424504c25faad42e6b405bbd4
Message:
chg: size(ringlist(..)..) -> nvars/npars/ring_list(..)
Location:
Singular/LIB
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/bimodules.lib

    r3dc7255 r7c7a10  
    8888  setring save;
    8989  list L = ringlist(save);
    90   if (size(ringlist(save)) > 4)
     90  if (size(ring_list(save)) > 4)
    9191  {
    9292    L = delete(L,6);
     
    156156  setring save;
    157157  list L = ringlist(save);
    158   if (size(ringlist(save)) > 4)
     158  if (size(ring_list(save)) > 4)
    159159  {L = delete(L,6);L = delete(L,5);}
    160160  def Scom = ring(L);
  • Singular/LIB/curveInv.lib

    r3dc7255 r7c7a10  
    443443    // Adjust the generators of Der_P to the new variables T(1),...,T(k),x(1),...,x(n)
    444444    // if there are new variables - check number of blocks
    445     if(size(ringlist(basering)[3]) >= 3){
    446         k = size(ringlist(basering)[3][1][2]);
     445    if(size(ring_list(basering)[3]) >= 3){
     446        k = size(ring_list(basering)[3][1][2]);
    447447        Der_P = curveAdjustModule(Der_P,k);
    448448    }
  • Singular/LIB/difform.lib

    r3dc7255 r7c7a10  
    342342{
    343343
    344     int n = size(ringlist(basering)[2]) div 2;
     344    int n = nvars(basering) div 2;
    345345    int k = size(I);
    346346    int i,j;
     
    386386
    387387    int n = size(#);
    388     int k = size(ringlist(basering)[2]) div 2;
     388    int k = nvars(basering) div 2;
    389389    int i;
    390390    string gen_ord = "";
     
    526526EXAMPLE:    example diffAlgebraListGen; shows an example"
    527527{
    528     int n = size(ringlist(basering)[2]);
     528    int n = nvars(basering);
    529529    int i,k,j;
    530530    int degr = -1;
     
    704704
    705705    poly f = df.form;
    706     int n = size(ringlist(basering)[2]) div 2;
     706    int n = nvars(basering) div 2;
    707707    int i;
    708708
     
    14231423
    14241424    // 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;
    14261426    int i;
    14271427    intvec var_weights;
     
    14721472    setring Omega_R;
    14731473
    1474     int n = size(ringlist(Omega_R)[2]) div 2;
     1474    int n = nvars(Omega_R) div 2;
    14751475    int i;
    14761476    intvec var_weights;
     
    15731573{
    15741574    // Highest degree is the nr. of variables in the basering
    1575     int n = size(ringlist(basering)[2]);
     1575    int n = nvars(basering);
    15761576    int i,j,k;
    15771577    difform current_gen;
     
    18861886    difform df = 0;
    18871887    difform d_var;
    1888     int n = size(ringlist(basering)[2]);
     1888    int n = nvars(basering);
    18891889    int i;
    18901890
     
    20692069
    20702070    // Need an image for any generator
    2071     if(n != size(ringlist(basering)[2]))
     2071    if(n != nvars(basering))
    20722072    {
    20732073        ERROR("Given list has wrong size!");
  • Singular/LIB/graal.lib

    r3dc7255 r7c7a10  
    105105  if (L[3][1][1]!="c")
    106106  {
    107     return(size(ringlist(basering)[3][1][2]));
     107    return(size(ring_list(basering)[3][1][2]));
    108108  }
    109109  else
    110110  {
    111     return(size(ringlist(basering)[3][2][2]));
     111    return(size(ring_list(basering)[3][2][2]));
    112112  }
    113113}
  • Singular/LIB/grobcov.lib

    r3dc7255 r7c7a10  
    57735773  //Options
    57745774  list DD=#;
    5775   int nax=size(ringlist(RR)[1][2]);              // number of parameters + tracer variables
     5775  int nax=npars(RR);              // number of parameters + tracer variables
    57765776  int nuv=nvars(RR);                                 // number of variables
    57775777  int na=0; int nx=nax;
     
    64116411  int nv=nvars(RR);
    64126412  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);
    64146414//  int version=0;
    64156415//  if(nv<4){version=1;}
  • Singular/LIB/hodge.lib

    r3dc7255 r7c7a10  
    6262  if (p < 0) { ERROR("Level p must be non-negative."); }
    6363  // The base ring must be non-commutative.
    64   if (size(ringlist(basering)) > 4) { ERROR("Base ring must be commutative."); }
     64  if (size(ring_list(basering)) > 4) { ERROR("Base ring must be commutative."); }
    6565
    6666  // Default engine & option.
  • Singular/LIB/ncfactor.lib

    r3dc7255 r7c7a10  
    34793479  def r = basering;
    34803480  list factorizeOutput;
    3481   if (size(ringlist(basering))<=4 && (attrib(r, "isLetterplaceRing") == 0) )
     3481  if (size(ring_list(basering))<=4 && (attrib(r, "isLetterplaceRing") == 0) )
    34823482  {//commutative ring case
    34833483    dbprint(p,dbprintWhitespace + "We are in a commutative ring. Factoring h using factorize.");
     
    95609560  {dbprintWhitespace = dbprintWhitespace + " ";}
    95619561  dbprint(p,dbprintWhitespace+"Checking if given ring is commutative.");
    9562   if (size(ringlist(basering))<=4)
     9562  if (size(ring_list(basering))<=4)
    95639563  {//basering was commutative
    95649564    return(0);
  • Singular/LIB/nets.lib

    r3dc7255 r7c7a10  
    471471  Target=string(nameof(basering));
    472472  Output[1]="Map"+": "+Source+" --> "+Target;
    473   v=size(ringlist(preimage(f))[2]);
     473  v=nvars(preimage(f));
    474474  empty=size(Output[1]);
    475475  Output[1]=Output[1]+" , "+string(ringlist(preimage(f))[2][1])+" -> "+string(f[1]);
     
    521521  Target=string(nameof(basering));
    522522  Output[1]=Map+": "+Source+" --> "+Target;
    523   v=size(ringlist(preimage(f))[2]);
     523  v=nvars(preimage(f));
    524524  empty=size(Output[1]);
    525525  Output[1]=Output[1]+" , "+string(ringlist(preimage(f))[2][1])+" -> "+string(f[1]);
  • Singular/LIB/polybori.lib

    r3dc7255 r7c7a10  
    351351  int i;
    352352  int counter=0;
    353   for (i=1; i<=size(ringlist(r)[3]); i++)
     353  for (i=1; i<=size(ring_list(r)[3]); i++)
    354354  {
    355355    if (rl[3][i][1]<>"C")
  • Singular/LIB/sets.lib

    r3dc7255 r7c7a10  
    113113    return(0);
    114114  }
    115   for(int i=1;i<=size(ringlist(preimage(a))[2]);i++){        //check if the two maps are the same
     115  for(int i=1;i<=size(ring_list(preimage(a))[2]);i++){        //check if the two maps are the same
    116116        if(a[i]!=b[i]){                                        //in every component
    117117                return(0);
  • Singular/LIB/sing.lib

    r3dc7255 r7c7a10  
    589589{
    590590   def RR=basering;
    591    list RRL=ringlist(RR);
     591   list RRL=ring_list(RR);
    592592   if(RRL[4]!=0)
    593593   {
     
    693693{
    694694   def RR=basering;
    695    list RRL=ringlist(RR);
     695   list RRL=ring_list(RR);
    696696   if(RRL[4]!=0)
    697697   {
     
    791791{
    792792   def RR=basering;
    793    list RRL=ringlist(RR);
     793   list RRL=ring_list(RR);
    794794   if(RRL[4]!=0)
    795795   {
Note: See TracChangeset for help on using the changeset viewer.