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


Ignore:
Timestamp:
Jun 12, 2015, 5:20:52 PM (8 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
Children:
c3864820ba9d094d8991f5f4052d1191982e4a7b
Parents:
7c852247b0258944ebdc6c5e200ebd31b23ff5ff
Message:
Added "mathicgb" algorithm selection to groebner as default method over commutative Fp[x] with a global ordering
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/standard.lib

    r7c8522 r406791  
    954954
    955955 //------------------ classify the possible settings ---------------------
    956   string algorithm;       //possibilities: std, slimgb, stdorslimgb
     956  string algorithm;       //possibilities: std, slimgb, stdorslimgb, mathicgb
    957957  string conversion;      //possibilities: hilb, fglm, hilborfglm, no
    958958  string partovar;        //possibilities: yes, no
     
    961961
    962962  //define algorithm:
     963  if( (was_minpoly == 0) && (npars_P == 0) && (was_qring == 0) && (attrib (P,"global") == 1) && (char(P) > 0) && (size(BRlist)<=4) )
     964  {
     965    if( defined(Singmathic) )
     966    {
     967      algorithm = "mathicgb"; // make it default for any appropriate setting... if mathicgb is available...
     968    } else
     969    {
     970      if( p_opt ) { "Sorry Singmathic::mathicgb is not available!"; }
     971    }
     972  }
    963973  if( find(method,"std") && !find(method,"slimgb") )
    964974  {
     
    10181028        (order=="simple" && (method==",par2var" && npars_P==0 )) ||
    10191029         (conversion=="no" && partovar=="no" &&
    1020            (algorithm=="std" || algorithm=="slimgb" ||
    1021             (find(method,"std") && find(method,"slimgb")) ) ) )
     1030           (algorithm=="std" || algorithm=="slimgb" || algorithm=="mathicgb" ||
     1031            (find(method,"std") || find(method,"slimgb") || find(method,"mathicgb")) ) ) )
    10221032  {
    10231033    direct = "yes";
     
    10401050  //BRlist (=ringlist of basering) > 4 if the basering is non-commutative
    10411051//---------------------------- direct methods -----------------------------
     1052  if ( algorithm=="mathicgb" )
     1053  {
     1054    if (p_opt) { algorithm + " in " + string(P); }
     1055    return( mathicgb(i) );
     1056  }
    10421057  if ( direct == "yes" )
    10431058  {
Note: See TracChangeset for help on using the changeset viewer.