Changeset a425ec4 in git


Ignore:
Timestamp:
Oct 2, 2008, 2:02:36 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
9d7447d8bc6a22cf11238df4f670a1d68d5fc982
Parents:
4b00efa888e880210e2ee5d8e9b301e5a1f002ad
Message:
*hannes:freegb moved


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r4b00ef ra425ec4  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.282 2008-09-10 09:15:52 Singular Exp $ */
     4/* $Id: extra.cc,v 1.283 2008-10-02 12:02:36 Singular Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    916916    }
    917917    else
    918 #endif
     918/*==================== freeGB, twosided GB in free algebra =================*/
     919#ifdef HAVE_SHIFTBBA
     920    if (strcmp(sys_cmd, "freegb") == 0)
     921    {
     922      ideal I;
     923      int uptodeg, lVblock;
     924      if ((h!=NULL) && (h->Typ()==IDEAL_CMD))
     925      {
     926        I=(ideal)h->CopyD();
     927        h=h->next;
     928      }
     929      else return TRUE;
     930      if ((h!=NULL) && (h->Typ()==INT_CMD))
     931      {
     932        uptodeg=(int)((long)(h->Data()));
     933        h=h->next;
     934      }
     935      else return TRUE;
     936      if ((h!=NULL) && (h->Typ()==INT_CMD))
     937      {
     938        lVblock=(int)((long)(h->Data()));
     939        res->data = freegb(I,uptodeg,lVblock);
     940        if (res->data == NULL)
     941        {
     942          /* that is there were input errors */
     943          res->data = I;
     944        }
     945        res->rtyp = IDEAL_CMD;
     946      }
     947      else return TRUE;
     948      return FALSE;
     949    }
     950    else
     951#endif /*SHIFTBBA*/
     952#endif /*PLURAL*/
    919953#ifdef HAVE_WALK
    920954/*==================== walk stuff =================*/
     
    26312665    }
    26322666    else
    2633 /*==================== freeGB, twosided GB in free algebra =================*/
    2634 #ifdef HAVE_SHIFTBBA
    2635     if (strcmp(sys_cmd, "freegb") == 0)
    2636     {
    2637       ideal I;
    2638       int uptodeg, lVblock;
    2639       if ((h!=NULL) && (h->Typ()==IDEAL_CMD))
    2640       {
    2641         I=(ideal)h->CopyD();
    2642         h=h->next;
    2643       }
    2644       else return TRUE;
    2645       if ((h!=NULL) && (h->Typ()==INT_CMD))
    2646       {
    2647         uptodeg=(int)((long)(h->Data()));
    2648         h=h->next;
    2649       }
    2650       else return TRUE;
    2651       if ((h!=NULL) && (h->Typ()==INT_CMD))
    2652       {
    2653         lVblock=(int)((long)(h->Data()));
    2654         res->data = freegb(I,uptodeg,lVblock);
    2655         if (res->data == NULL)
    2656         {
    2657           /* that is there were input errors */
    2658           res->data = I;
    2659         }
    2660         res->rtyp = IDEAL_CMD;
    2661       }
    2662       else return TRUE;
    2663       return FALSE;
    2664     }
    2665     else
    2666 #endif
    26672667/*==================== shift-test for freeGB  =================*/
    26682668#ifdef HAVE_SHIFTBBA
Note: See TracChangeset for help on using the changeset viewer.