Changeset 7de961 in git


Ignore:
Timestamp:
Jun 9, 2015, 4:07:18 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
8aa9770fc6e41a905d10dd6cac4556354095e462
Parents:
8fe1512a20298a7470ea0420e2d202969e2d40c3
Message:
code cleanup: Standard::groebner
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/standard.lib

    r8fe151 r7de961  
    804804"SYNTAX: @code{groebner (} ideal_expression @code{)} @*
    805805         @code{groebner (} module_expression @code{)} @*
    806          @code{groebner (} ideal_expression@code{,} int_expression @code{)} @*
    807          @code{groebner (} module_expression@code{,} int_expression @code{)} @*
    808806         @code{groebner (} ideal_expression@code{,} list of string_expressions
    809807               @code{)} @*
    810808         @code{groebner (} ideal_expression@code{,} list of string_expressions
    811                and int_expression @code{)} @*
    812          @code{groebner (} ideal_expression@code{,} int_expression @code{)}
     809               and int_expression @code{)}
    813810TYPE:    type of the first argument
    814811PURPOSE: computes a standard basis of the first argument @code{I}
     
    829826         afterwards back).
    830827         @code{option(prot)} informs about the chosen method.
    831 NOTE:    If an additional argument, say @code{wait}, of type int is given,
    832          then the computation runs for at most @code{wait} seconds.
    833          That is, if no result could be computed in @code{wait} seconds,
    834          then the computation is interrupted, 0 is returned, a warning
    835          message is displayed, and the global variable
    836          @code{Standard::groebner_error} is defined.
    837          This feature uses MP and hence it is available on UNIX platforms, only.
    838828HINT:    Since there exists no uniform best method for computing standard
    839829         bases, and since the difference in performance of a method on
     
    843833         parameters/variables by integers, etc.). @*
    844834SEE ALSO: stdhilb, stdfglm, std, slimgb
    845 KEYWORDS: time limit on computations; MP, groebner basis computations
     835KEYWORDS: groebner basis computations
    846836EXAMPLE: example groebner;  shows an example"
    847837
     
    904894  for (k=1; k<=size(#); k++)
    905895  {
    906      if (typeof(#[k]) == "int")
    907      {
    908        int wait = #[k];
    909      }
    910896     if (typeof(#[k]) == "string")
    911897     {
     
    914900     }
    915901  }
    916 
    917  //======= we have an argument of type int -- try to use MPfork links =======
    918   if ( defined(wait) == voice )
    919   {
    920     if ( system("with", "MP") )
    921     {
    922         int j = 10;
    923         string bs = nameof(basering);
    924         link l_fork = "MPtcp:fork";
    925         open(l_fork);
    926         write(l_fork, quote(system("pid")));
    927         int pid = read(l_fork);
    928 //        write(l_fork, quote(groebner(eval(i))));
    929         write(l_fork, quote(groebner(eval(i),eval(Method))));
    930 //###Fehlermeldung:
    931 // ***dError: undef. ringorder used
    932 // occured at:
    933 
    934         // sleep in small intervalls for appr. one second
    935         if (wait > 0)
    936         {
    937           while(j < 1000000)
    938           {
    939             if (status(l_fork, "read", "ready", j)) {break;}
    940             j = j + j;
    941           }
    942         }
    943 
    944         // sleep in intervalls of one second from now on
    945         j = 1;
    946         while (j < wait)
    947         {
    948           if (status(l_fork, "read", "ready", 1000000)) {break;}
    949           j = j + 1;
    950         }
    951 
    952         if (status(l_fork, "read", "ready"))
    953         {
    954           def result = read(l_fork);
    955           if (bs != nameof(basering))
    956           {
    957             def PP = basering;
    958             setring P;
    959             def result = imap(PP, result);
    960             kill PP;
    961           }
    962           if (defined(groebner_error)==1)
    963           {
    964             kill groebner_error;
    965           }
    966           kill l_fork;
    967         }
    968         else
    969         {
    970           ideal result;
    971           if (! defined(groebner_error))
    972           {
    973             int groebner_error = 1;
    974             export groebner_error;
    975           }
    976           "** groebner did not finish";
    977           j = system("sh", "kill " + string(pid));
    978         }
    979         return (result);
    980     }
    981     else
    982     {
    983       "** groebner with a time limit on computation is not supported
    984           in this configuration";
    985     }
    986   }
    987 
    988  //=========== we are still here -- do the actual computation =============
    989902
    990903//--------------------- save data from basering ---------------------------
     
    1065978  if( find(method,"hilb") && !find(method,"fglm") )
    1066979  {
    1067      conversion = "hilb"; // $Id$
     980     conversion = "hilb";
    1068981  }
    1069982  if( find(method,"fglm") && !find(method,"hilb") )
    1070983  {
    1071     conversion = "fglm"; // $Id$
     984    conversion = "fglm";
    1072985  }
    1073986  if( find(method,"fglm") && find(method,"hilb") )
    1074987  {
    1075     conversion = "hilborfglm"; // $Id$
     988    conversion = "hilborfglm";
    1076989  }
    1077990  if( !find(method,"fglm") && !find(method,"hilb") )
    1078991  {
    1079     conversion = "no"; // $Id$
     992    conversion = "no";
    1080993  }
    1081994
  • Tst/Manual/breakpoint.res.gz.uu

    r8fe151 r7de961  
    11begin 640 breakpoint.res.gz
    2 M'XL("(4YR5,``V)R96%K<&]I;G0N<F5S`'7000N"0!`%X+N_XB$=5C!),Q.$
    3 M/407(;K8/12'6)(UW(GZ^:U1IF"G7?;-^V"G..WS(X!0XI#OX++AH%&5F\'>
    4 MSDHK%E[F]">D1-51>;VU2G.@Z1$8+MDI/D(TCL6E:ZG2U-GR[Q6ACY+1*$U(
    5 MXQ1*XSLW,.M9QD>X3:96]+-L-FO%?ZQE.*',N(R:&F*JQ>J9>(.TD>]]]!^^
    6 .&V'K"^<%^NY1DCH!````
     2M'XL("$+R=E4``V)R96%K<&]I;G0N<F5S`'7000N"0!`%X+N_XB$=5C!IM4P0
     3M/$07(;K8/12'6)(UW(GZ^:U1IF"G7?;-^V"G..WS(P"9X9#OX++AH%&5F\+>
     4MSDHK%E[J]">R#%5'Y?76*LV!ID=@N&2G^`CA.!:7KJ5*4V?+OU=('R6C49J0
     5M1`F4QG=N8*)9QH?<QE,K_%DVF[76?ZREG%!F7$9-#3'58O6,O4':9.]]]!^^
     6.&V'K"^<%/$@GQSH!````
    77`
    88end
Note: See TracChangeset for help on using the changeset viewer.