Changeset 5de37f3 in git for Singular/iparith.cc


Ignore:
Timestamp:
Dec 14, 2019, 12:12:32 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
fb78239218457e866674d82b8f12307e2a1adde0
Parents:
5aa8ae1cf20f98285f95270931bdd71a62fdc7c1c965dfcfaad2306423cb7b5a94889f0f952cb8b9
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2019-12-14 12:12:32+01:00
git-committer:
GitHub <noreply@github.com>2019-12-14 12:12:32+01:00
Message:
Merge pull request #967 from kabouzeid/lp_lift

lift & liftstd for Letterplace
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r5aa8ae1 r5de37f3  
    25402540  int ul= IDELEMS((ideal)u->Data());
    25412541  int vl= IDELEMS((ideal)v->Data());
     2542#ifdef HAVE_SHIFTBBA
     2543  if (rIsLPRing(currRing))
     2544  {
     2545    if (currRing->LPncGenCount < ul)
     2546    {
     2547      Werror("At least %d ncgen variables are needed for this computation.", ul);
     2548      return TRUE;
     2549    }
     2550  }
     2551#endif
    25422552  ideal m = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE,
    25432553                   hasFlag(u,FLAG_STD));
     
    25502560  if ((v->rtyp!=IDHDL)||(v->e!=NULL)) return TRUE;
    25512561  idhdl h=(idhdl)v->data;
     2562#ifdef HAVE_SHIFTBBA
     2563  if (rIsLPRing(currRing))
     2564  {
     2565    if (currRing->LPncGenCount < IDELEMS((ideal)u->Data()))
     2566    {
     2567      Werror("At least %d ncgen variables are needed for this computation.", IDELEMS((ideal)u->Data()));
     2568      return TRUE;
     2569    }
     2570  }
     2571#endif
    25522572  // CopyD for IDEAL_CMD and MODUL_CMD are identical:
    25532573  res->data = (char *)idLiftStd((ideal)u->Data(),
     
    65396559  else
    65406560  {
     6561#ifdef HAVE_SHIFTBBA
     6562    if (rIsLPRing(currRing))
     6563    {
     6564      WerrorS("Substituting parameters not implemented for Letterplace rings.");
     6565      return TRUE;
     6566    }
     6567#endif
    65416568    res->data=pSubstPar(p,-ringvar,monomexpr);
    65426569  }
     
    65816608  else
    65826609  {
     6610#ifdef HAVE_SHIFTBBA
     6611    if (rIsLPRing(currRing))
     6612    {
     6613      WerrorS("Substituting parameters not implemented for Letterplace rings.");
     6614      return TRUE;
     6615    }
     6616#endif
    65836617    res->data = idSubstPar(id,-ringvar,monomexpr);
    65846618  }
     
    66866720  int ul= IDELEMS((ideal)u->Data());
    66876721  int vl= IDELEMS((ideal)v->Data());
     6722#ifdef HAVE_SHIFTBBA
     6723  if (rIsLPRing(currRing))
     6724  {
     6725    if (currRing->LPncGenCount < ul)
     6726    {
     6727      Werror("At least %d ncgen variables are needed for this computation.", ul);
     6728      return TRUE;
     6729    }
     6730  }
     6731#endif
    66886732  ideal m
    66896733    = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE,hasFlag(u,FLAG_STD),
     
    66996743  idhdl hv=(idhdl)v->data;
    67006744  idhdl hw=(idhdl)w->data;
     6745#ifdef HAVE_SHIFTBBA
     6746  if (rIsLPRing(currRing))
     6747  {
     6748    if (currRing->LPncGenCount < IDELEMS((ideal)u->Data()))
     6749    {
     6750      Werror("At least %d ncgen variables are needed for this computation.", IDELEMS((ideal)u->Data()));
     6751      return TRUE;
     6752    }
     6753  }
     6754#endif
    67016755  // CopyD for IDEAL_CMD and MODUL_CMD are identical:
    67026756  res->data = (char *)idLiftStd((ideal)u->Data(),
Note: See TracChangeset for help on using the changeset viewer.