Changeset 3fa56b in git for Singular/iparith.cc


Ignore:
Timestamp:
Aug 1, 2011, 8:14:09 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
9b398bf9bcc10fa186e47a13bfee0f9c2411be18
Parents:
5f0de86b93880cf5a4ec451d78ebc9de6163c54c
Message:
fix tr. 351

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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r5f0de8 r3fa56b  
    37863786static BOOLEAN jjFACSTD(leftv res, leftv v)
    37873787{
    3788   ideal_list p,h;
    3789   h=kStdfac((ideal)v->Data(),NULL,testHomog,NULL);
    37903788  lists L=(lists)omAllocBin(slists_bin);
    3791   if (h==NULL)
    3792   {
     3789  if (rField_is_Zp()
     3790  || rField_is_Q()
     3791  || rField_is_Zp_a()
     3792  || rField_is_Q_a())
     3793  {
     3794    ideal_list p,h;
     3795    h=kStdfac((ideal)v->Data(),NULL,testHomog,NULL);
     3796    if (h==NULL)
     3797    {
     3798      L->Init(1);
     3799      L->m[0].data=(char *)idInit(0,1);
     3800      L->m[0].rtyp=IDEAL_CMD;
     3801    }
     3802    else
     3803    {
     3804      p=h;
     3805      int l=0;
     3806      while (p!=NULL) { p=p->next;l++; }
     3807      L->Init(l);
     3808      l=0;
     3809      while(h!=NULL)
     3810      {
     3811        L->m[l].data=(char *)h->d;
     3812        L->m[l].rtyp=IDEAL_CMD;
     3813        p=h->next;
     3814        omFreeSize(h,sizeof(*h));
     3815        h=p;
     3816        l++;
     3817      }
     3818    }
     3819  }
     3820  else
     3821  {
     3822    WarnS("no factorization implemented");
    37933823    L->Init(1);
    3794     L->m[0].data=(char *)idInit(0,1);
    3795     L->m[0].rtyp=IDEAL_CMD;
    3796   }
    3797   else
    3798   {
    3799     p=h;
    3800     int l=0;
    3801     while (p!=NULL) { p=p->next;l++; }
    3802     L->Init(l);
    3803     l=0;
    3804     while(h!=NULL)
    3805     {
    3806       L->m[l].data=(char *)h->d;
    3807       L->m[l].rtyp=IDEAL_CMD;
    3808       p=h->next;
    3809       omFreeSize(h,sizeof(*h));
    3810       h=p;
    3811       l++;
    3812     }
     3824    iiExprArith1(&(L->m[0]),v,STD_CMD);
    38133825  }
    38143826  res->data=(void *)L;
Note: See TracChangeset for help on using the changeset viewer.