Changeset 121d2ae in git for Singular


Ignore:
Timestamp:
Apr 30, 2013, 3:28:20 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
ed95e6148ac6926aac6e83629cf4545c5c95a7a7
Parents:
770da2d46f8a15e6de2ab495b0bf7d7d276d98c4
git-author:
Martin Lee <martinlee84@web.de>2013-04-30 15:28:20+02:00
git-committer:
Martin Lee <martinlee84@web.de>2013-05-02 11:42:48+02:00
Message:
chg: added new system command "absBiFact"
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/absfact.lib

    r770da2 r121d2ae  
    761761  }
    762762
    763   list tmpf=absBiFact (p);
     763  list tmpf=system ("absBiFact", p);
    764764
    765765  // the homogeneous case, homogenizing the result
  • Singular/extra.cc

    r770da2 r121d2ae  
    36833683      }
    36843684      else
     3685  /*================= absBiFact ======================*/
     3686      if (strcmp(sys_cmd, "absBiFact") == 0)
     3687      {
     3688        if (h!=NULL)
     3689        {
     3690          res->rtyp=LIST_CMD;
     3691          if (h->Typ()==POLY_CMD)
     3692          {
     3693            intvec *v=NULL;
     3694            ideal mipos= NULL;
     3695            int n= 0;
     3696            ideal f=singclap_absBiFactorize((poly)(h->Data()), mipos, &v, n, currRing);
     3697            if (f==NULL) return TRUE;
     3698            ivTest(v);
     3699            lists l=(lists)omAllocBin(slists_bin);
     3700            l->Init(4);
     3701            l->m[0].rtyp=IDEAL_CMD;
     3702            l->m[0].data=(void *)f;
     3703            l->m[1].rtyp=INTVEC_CMD;
     3704            l->m[1].data=(void *)v;
     3705            l->m[2].rtyp=IDEAL_CMD;
     3706            l->m[2].data=(void*) mipos;
     3707            l->m[3].rtyp=INT_CMD;
     3708            l->m[3].data=(void*) (long) n;
     3709            res->data=(void *)l;
     3710            return FALSE;
     3711          }
     3712          else return TRUE;
     3713        }
     3714        else return TRUE;
     3715      }
     3716      else
    36853717      #endif
    36863718  /*================= probIrredTest ======================*/
Note: See TracChangeset for help on using the changeset viewer.