Changeset 2a5c2f4 in git


Ignore:
Timestamp:
Aug 14, 2006, 7:08:21 PM (18 years ago)
Author:
Oliver Wienand <wienand@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6d09f28a24f61ce1c4a87c619ced5aca0fad6075
Parents:
cd3d3369e55f59ac72a629fa206a0f305d198a9e
Message:
exta.cc:
system("createG0"): returns the gb of the van. polys


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    rcd3d336 r2a5c2f4  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.240 2006-06-12 00:08:15 wienand Exp $ */
     4/* $Id: extra.cc,v 1.241 2006-08-14 17:08:21 wienand Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    24942494      extern int strat_nr;
    24952495      extern int strat_fac_debug;
    2496       strat_fac_debug=(int)(long)h->Data(); 
     2496      strat_fac_debug=(int)(long)h->Data();
    24972497      strat_nr=0;
    24982498      return FALSE;
     
    25082508      res->rtyp=POLY_CMD;
    25092509      res->data=(poly) kFindZeroPoly(f, r, r);
     2510      return(FALSE);
     2511    }
     2512    else
     2513/*==================== Creating zero polynomials =================*/
     2514    if (strcmp(sys_cmd, "createG0")==0)
     2515    {
     2516      /* long exp[50];
     2517      int N = 0;
     2518      while (h != NULL)
     2519      {
     2520        N += 1;
     2521        exp[N] = (long) h->Data();
     2522        // if (exp[i] % 2 != 0) exp[i] -= 1;
     2523        h = h->next;
     2524      }
     2525      for (int k = 1; N + k <= currRing->N; k++) exp[k] = 0;
     2526
     2527      poly t_p;
     2528      res->rtyp=POLY_CMD;
     2529      res->data= (poly) kCreateZeroPoly(exp, -1, &t_p, currRing, currRing);
     2530      return(FALSE); */
     2531
     2532      res->rtyp = IDEAL_CMD;
     2533      res->data = (ideal) createG0();
    25102534      return(FALSE);
    25112535    }
     
    25332557    }
    25342558    else
    2535     if (strcmp(sys_cmd, "reduce_fct")==0)
    2536     {
    2537       ring r = currRing;
    2538       poly f = (poly)h->Data();
     2559/*==================== Testing groebner basis =================*/
     2560    if (strcmp(sys_cmd, "spoly")==0)
     2561    {
     2562      poly f = pCopy((poly) h->Data());
     2563      h = h->next;
     2564      poly g = pCopy((poly) h->Data());
     2565
    25392566      res->rtyp=POLY_CMD;
    2540       res->data=NULL;
     2567      res->data=(poly) plain_spoly(f,g);
     2568      return(FALSE);
     2569    }
     2570    else
     2571    if (strcmp(sys_cmd, "testGB")==0)
     2572    {
     2573      ideal I = (ideal) h->Data();
     2574      h = h->next;
     2575      ideal GI = (ideal) h->Data();
     2576      res->rtyp = INT_CMD;
     2577      res->data = (void *) testGB(I, GI);
    25412578      return(FALSE);
    25422579    }
     
    27332770    }
    27342771    else
    2735 #ifdef HAVE_RING2TOM
    2736 /*==================== Testing groebner basis =================*/
    2737     if (strcmp(sys_cmd, "spoly")==0)
    2738     {
    2739       poly f = pCopy((poly) h->Data());
    2740       h = h->next;
    2741       poly g = pCopy((poly) h->Data());
    2742 
    2743       res->rtyp=POLY_CMD;
    2744       res->data=(poly) plain_spoly(f,g);
    2745       return(FALSE);
    2746     }
    2747     else
    2748     if (strcmp(sys_cmd, "testGB")==0)
    2749     {
    2750       ideal I = (ideal) h->Data();
    2751       h = h->next;
    2752       ideal GI = (ideal) h->Data();
    2753       res->rtyp = INT_CMD;
    2754       res->data = (void *) testGB(I, GI);
    2755       return(FALSE);
    2756     }
    2757     else
    2758 #endif
    27592772#ifdef ix86_Win
    27602773/*==================== Python Singular =================*/
Note: See TracChangeset for help on using the changeset viewer.