Changeset 291790 in git for Singular/extra.cc


Ignore:
Timestamp:
Jun 27, 2011, 7:50:23 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
a2dde000d30c3959f561880bd909b298a306bb48
Parents:
4986481fc1e216c927221c4ebffb8cf0cdbe2a77
Message:
removed libfac debug stuff: system(factoras)

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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r498648 r291790  
    36503650      else
    36513651      #endif
    3652   /*================= factoras =========================*/
    3653       if (strcmp (sys_cmd, "factoras") == 0)
    3654       {
    3655         if (h!=NULL && (h->Typ()== POLY_CMD) && (h->next->Typ() == IDEAL_CMD))
    3656         {
    3657           CanonicalForm F( convSingTrPFactoryP((poly)(h->Data())));
    3658           h= h->next;
    3659           ideal I= ((ideal) h->Data());
    3660           int i= IDELEMS (I);
    3661           CFList as;
    3662           for (int j= 0; j < i; j++)
    3663             as.append (convSingTrPFactoryP (I->m[j]));
    3664           int success= 0;
    3665           CFFList libfacResult= newfactoras (F, as, success);
    3666           if (success >= 0)
    3667           {
    3668             //convert factors
    3669             ideal factors= idInit(libfacResult.length(),1);
    3670             CFFListIterator j= libfacResult;
    3671             i= 0;
    3672             intvec *mult= new intvec (libfacResult.length());
    3673             for ( ; j.hasItem(); j++,i++ )
    3674             {
    3675               factors->m[i]= convFactoryPSingTrP (j.getItem().factor());
    3676               (*mult)[i]= j.getItem().exp();
    3677             }
    3678             lists l= (lists)omAllocBin( slists_bin);
    3679             l->Init(2);
    3680             l->m[0].rtyp= IDEAL_CMD;
    3681             l->m[0].data= (char *) factors;
    3682             l->m[1].rtyp= INTVEC_CMD;
    3683             l->m[1].data= (char *) mult;
    3684             res->data= l;
    3685             res->rtyp= LIST_CMD;
    3686             if (success == 0)
    3687               WerrorS ("factorization maybe incomplete");
    3688             return FALSE;
    3689           }
    3690           else
    3691           {
    3692             WerrorS("problem in libfac");
    3693             return TRUE;
    3694           }
    3695         }
    3696         else
    3697         {
    3698           WerrorS("`system(\"factoras\",<poly>,<ideal>) expected");
    3699           return TRUE;
    3700         }
    3701       }
    3702       else
    37033652  /*================= probIrredTest ======================*/
    37043653      if (strcmp (sys_cmd, "probIrredTest") == 0)
Note: See TracChangeset for help on using the changeset viewer.