Changeset edfe71 in git for Singular/LIB/standard.lib


Ignore:
Timestamp:
Oct 20, 2005, 3:13:53 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
50cce796a85aab0e31358748ad1b9f754dac9e03
Parents:
836dc0ed2d2275fe2390d2d8d1b51ae6998669b5
Message:
*hannes: groebner and module


git-svn-id: file:///usr/local/Singular/svn/trunk@8744 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/standard.lib

    r836dc0e redfe71  
    11//////////////////////////////////////////////////////////////////////////////
    2 version="$Id: standard.lib,v 1.73 2005-09-27 16:52:57 Singular Exp $";
     2version="$Id: standard.lib,v 1.74 2005-10-20 13:13:53 Singular Exp $";
    33category="Miscellaneous";
    44info="
     
    249249    return(std(i));
    250250  }
     251
    251252  //if ordering is global, there are parameters and minpoly is 0
    252253  if (((npars(basering)>0) &&(minpoly==0)) &&(typeof(basering)=="ring"))
    253   {
    254     return(slimgb(i));
    255   }
     254  { return(slimgb(i)); }
     255
     256  // for module case, not already hadled by slimgb:
     257  if (nrows(i)>1)
     258  { return(std(i)); }
    256259  int IsSimple_P;
    257260  if (system("nblocks") <= 2)
     
    300303  int nvarP = nvars(P);
    301304  int k;
    302   ideal Qideal = ideal(P); 
     305  ideal Qideal = ideal(P);
    303306  string ri;
    304307
     
    310313  if (npars_P > 1)
    311314  {
    312     for (k=1; k<=npars_P; k++) 
    313     {
    314       BRlist[2][nvarP+k] = BRlist[1][2][k]; 
     315    for (k=1; k<=npars_P; k++)
     316    {
     317      BRlist[2][nvarP+k] = BRlist[1][2][k];
    315318    }
    316319    BRlist[1]=BRlist[1][1];
     
    318321  }
    319322
    320    
     323
    321324  // for Hilbert driven approach, Qring structure is removed (defining ideal
    322   // will be added to the ideal under consideration in the process). 
     325  // will be added to the ideal under consideration in the process).
    323326  if (size(BRlist[4])>0)
    324327  {
    325328    int was_qring = 1;
    326329    BRlist[4] = ideal(0);
    327   } 
     330  }
    328331
    329332  // a homogenizing variable is added, if necessary
     
    332335  {
    333336    add_vars = add_vars + 1;
    334     BRlist[2][nvarP+add_vars] = "@t@"; 
     337    BRlist[2][nvarP+add_vars] = "@t@";
    335338  }
    336339  // save ordering for later use
     
    339342  // ordering is set to (dp, C)
    340343  intvec weight_dp = 1;
    341   for (k=2; k<=nvarP+add_vars; k++) { weight_dp = weight_dp,1; } 
     344  for (k=2; k<=nvarP+add_vars; k++) { weight_dp = weight_dp,1; }
    342345  BRlist[3] = list();
    343346  BRlist[3][1]=list("dp",weight_dp);
     
    397400      BRlist[3][1][2] = OW;
    398401    }
    399     else 
     402    else
    400403    {
    401404      if ( IsSimple_P && (add_vars==1) && (size(ord_P)==2) && (ord_P[2][1]=="lp") )
Note: See TracChangeset for help on using the changeset viewer.