Changeset b95a5f in git


Ignore:
Timestamp:
Nov 24, 2018, 4:41:55 PM (5 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
58316de87753e52bf45851f452b93d4c695c8b7f
Parents:
15fbfe06ffc98afedf8793dac26eb99ca7f9b6d4
Message:
Create entry points for rightGB
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/freegb.lib

    r15fbfe0 rb95a5f  
    443443  ideal J = letplaceGBasis(I);
    444444  J;
     445}
     446
     447proc lpRightStd(ideal F, ideal Q)
     448{
     449  return (system("rightgb", F, Q));
    445450}
    446451
  • Singular/extra.cc

    r15fbfe0 rb95a5f  
    12431243    else
    12441244  #endif
     1245  /*==================== rightgb for freeGB  ====================*/
     1246  #ifdef HAVE_SHIFTBBA
     1247    if (strcmp(sys_cmd, "rightgb") == 0)
     1248    {
     1249      const short t[]={2,IDEAL_CMD,IDEAL_CMD};
     1250      if (iiCheckTypes(h,t,1))
     1251      {
     1252        ideal F=(ideal)h->CopyD();
     1253        ideal Q=(ideal)(h->next->CopyD());
     1254        res->rtyp = IDEAL_CMD;
     1255        res->data = rightgb(F, Q);
     1256        return FALSE;
     1257      }
     1258      else return TRUE;
     1259    }
     1260    else
     1261  #endif
    12451262  /*==================== pcv ==================================*/
    12461263  #ifdef HAVE_PCV
  • kernel/GBEngine/kstd1.cc

    r15fbfe0 rb95a5f  
    25682568#ifdef HAVE_SHIFTBBA
    25692569ideal kStdShift(ideal F, ideal Q, tHomog h,intvec ** w, intvec *hilb,int syzComp,
    2570                 int newIdeal, intvec *vw)
     2570                int newIdeal, intvec *vw, BOOLEAN rightGB)
    25712571{
    25722572  ideal r;
     
    25752575  kStrategy strat=new skStrategy;
    25762576  intvec* temp_w=NULL;
     2577
     2578  if (rightGB) strat->rightGB = TRUE;
    25772579
    25782580  if(!TEST_OPT_RETURN_SB)
  • kernel/GBEngine/kstd1.h

    r15fbfe0 rb95a5f  
    3939          int syzComp=0,int newIdeal=0, intvec *vw=NULL, s_poly_proc_t sp=NULL);
    4040
    41 ideal kStdShift(ideal F, ideal Q, tHomog h,intvec ** w, intvec *hilb,int syzComp,
    42                 int newIdeal, intvec *vw);
     41ideal kStdShift(ideal F, ideal Q, tHomog h,intvec ** mw, intvec *hilb=NULL,
     42    int syzComp=0, int newIdeal=0, intvec *vw=NULL, BOOLEAN rightGB=FALSE);
    4343
    4444/* the following global data are defined in kutil.cc */
  • kernel/GBEngine/kstd2.cc

    r15fbfe0 rb95a5f  
    44564456
    44574457
    4458 ideal freegb(ideal I)
     4458ideal freegb(ideal F)
    44594459{
    44604460  assume(rIsLPRing(currRing));
    4461   assume(idIsInV(I));
    4462   ideal RS = kStdShift(I,NULL, testHomog, NULL,NULL,0,0,NULL);
     4461  assume(idIsInV(F));
     4462  ideal RS = kStdShift(F, NULL, testHomog, NULL);
     4463  idSkipZeroes(RS); // is this even necessary?
     4464  assume(idIsInV(RS));
     4465  return(RS);
     4466}
     4467
     4468ideal rightgb(ideal F, ideal Q)
     4469{
     4470  assume(rIsLPRing(currRing));
     4471  assume(idIsInV(F));
     4472  ideal RS = kStdShift(F, Q, testHomog, NULL, NULL, 0, 0, NULL, TRUE);
    44634473  idSkipZeroes(RS); // is this even necessary?
    44644474  assume(idIsInV(RS));
  • kernel/GBEngine/kutil.h

    r15fbfe0 rb95a5f  
    368368  #ifdef HAVE_SHIFTBBA
    369369  int cv; // in shift bases: counting V criterion
     370  /*BOOLEAN*/ char rightGB;
    370371  #endif
    371372  /*BOOLEAN*/ char interpt;
     
    864865int redFirstShift (LObject* h,kStrategy strat); // ok
    865866
    866 ideal freegb(ideal I);
     867ideal freegb(ideal F);
     868ideal rightgb(ideal F, ideal Q);
    867869
    868870ideal bbaShift(ideal F, ideal Q,intvec *w,intvec *hilb,kStrategy strat);
Note: See TracChangeset for help on using the changeset viewer.