Changeset 0bb2274 in git for Singular/iparith.cc


Ignore:
Timestamp:
Nov 29, 2019, 11:39:26 AM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
4c740db8a56497af8a13d7d7ef781de902adb671
Parents:
8ae6241a27267554ff8052f72c024a7a4e281d45
Message:
improve liftstd, and tests

need to disable this for modulo, syz and *res (via OPT_REDTAIL_SYZ)
see Tst/BuchDl/Ex_L5.tst (modulo), Tst/New/modulo_homalg_full.tst (syz,nres)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r8ae6241 r0bb2274  
    30853085     (*ww) -= add_row_shift;
    30863086  }
     3087  unsigned save_opt=si_opt_1;
     3088  si_opt_1 |= Sy_bit(OPT_REDTAIL_SYZ);
    30873089  if ((iiOp == RES_CMD) || (iiOp == MRES_CMD))
    30883090  {
     
    31683170    assume( (r->orderedRes != NULL) || (r->res != NULL) ); // analog for hres...
    31693171
     3172  si_opt_1=save_opt;
    31703173  return FALSE;
    31713174}
     
    50485051static BOOLEAN jjSYZYGY(leftv res, leftv v)
    50495052{
     5053  ideal v_id=(ideal)v->Data();
     5054#ifdef HAVE_SHIFTBBA
     5055  if (rIsLPRing(currRing))
     5056  {
     5057    if (currRing->LPncGenCount < IDELEMS(v_id))
     5058    {
     5059      Werror("At least %d ncgen variables are needed for this computation.", IDELEMS(v_id));
     5060      return TRUE;
     5061    }
     5062  }
     5063#endif
    50505064  intvec *ww=(intvec *)atGet(v,"isHomog",INTVEC_CMD);
    50515065  intvec *w=NULL;
    5052   ideal v_id=(ideal)v->Data();
    50535066  tHomog hom=testHomog;
    5054 #ifdef HAVE_SHIFTBBA
    5055   if (rIsLPRing(currRing))
    5056   {
    5057     if (currRing->LPncGenCount < IDELEMS(v_id))
    5058     {
    5059       Werror("At least %d ncgen variables are needed for this computation.", IDELEMS(v_id));
    5060       return TRUE;
    5061     }
    5062   }
    5063 #endif
    50645067  if (ww!=NULL)
    50655068  {
     
    50845087        hom=isHomog;
    50855088  }
     5089  unsigned save_opt=si_opt_1;
     5090  si_opt_1 |= Sy_bit(OPT_REDTAIL_SYZ);
    50865091  ideal S=idSyzygies(v_id,hom,&w);
     5092  si_opt_1=save_opt;
    50875093  res->data = (char *)S;
    50885094  if (hom==isHomog)
Note: See TracChangeset for help on using the changeset viewer.