Changeset 5de37f3 in git for Singular/iparith.cc
- Timestamp:
- Dec 14, 2019, 12:12:32 PM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r5aa8ae1 r5de37f3 2540 2540 int ul= IDELEMS((ideal)u->Data()); 2541 2541 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 2542 2552 ideal m = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE, 2543 2553 hasFlag(u,FLAG_STD)); … … 2550 2560 if ((v->rtyp!=IDHDL)||(v->e!=NULL)) return TRUE; 2551 2561 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 2552 2572 // CopyD for IDEAL_CMD and MODUL_CMD are identical: 2553 2573 res->data = (char *)idLiftStd((ideal)u->Data(), … … 6539 6559 else 6540 6560 { 6561 #ifdef HAVE_SHIFTBBA 6562 if (rIsLPRing(currRing)) 6563 { 6564 WerrorS("Substituting parameters not implemented for Letterplace rings."); 6565 return TRUE; 6566 } 6567 #endif 6541 6568 res->data=pSubstPar(p,-ringvar,monomexpr); 6542 6569 } … … 6581 6608 else 6582 6609 { 6610 #ifdef HAVE_SHIFTBBA 6611 if (rIsLPRing(currRing)) 6612 { 6613 WerrorS("Substituting parameters not implemented for Letterplace rings."); 6614 return TRUE; 6615 } 6616 #endif 6583 6617 res->data = idSubstPar(id,-ringvar,monomexpr); 6584 6618 } … … 6686 6720 int ul= IDELEMS((ideal)u->Data()); 6687 6721 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 6688 6732 ideal m 6689 6733 = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE,hasFlag(u,FLAG_STD), … … 6699 6743 idhdl hv=(idhdl)v->data; 6700 6744 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 6701 6755 // CopyD for IDEAL_CMD and MODUL_CMD are identical: 6702 6756 res->data = (char *)idLiftStd((ideal)u->Data(),
Note: See TracChangeset
for help on using the changeset viewer.