Changeset 61944d0 in git for kernel/f5lists.cc


Ignore:
Timestamp:
Feb 26, 2009, 10:01:52 AM (14 years ago)
Author:
Christian Eder
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
60933487e53ddb20e0e5d7d5ccc137ac53893f37
Parents:
7a8ca6fdf98e2078621ae6ac00ff9481cab3def8
Message:
solved problems in reduction() in topReduction() considering both criteria and computation of new polynomials


git-svn-id: file:///usr/local/Singular/svn/trunk@11473 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/f5lists.cc

    r7a8ca6 r61944d0  
    106106    }
    107107    else {
    108         if(0 == pLmCmp(t,this->getTerm()) || -1 == pLmCmp(t,this->getTerm())) {
     108        if(-1 == pLmCmp(t,this->getTerm())) {
    109109            LNode* newElement   =   new LNode(t, i, p, r, this);
    110110            return newElement;
     
    113113            LNode* temp = this;
    114114            while(NULL != temp->next && NULL != temp->next->data) {
    115                 if( 0 == pLmCmp(t,temp->next->getTerm()) || -1 == pLmCmp(t,temp->next->getTerm())) {
     115                if(-1 == pLmCmp(t,temp->next->getTerm())) {
    116116                    LNode* newElement   =   new LNode(t, i, p, r, temp->next);
    117117                    temp->next          =   newElement;
     
    188188}
    189189
     190void LNode::setNext(LNode* l) {
     191    next    =   l;
     192}
     193
    190194// test if for any list element the polynomial part of the data is equal to *p
    191195bool LNode::polyTest(poly* p) {
     
    213217        Print("Index: %d\n",temp->getIndex());
    214218        Print("Term: ");
    215         //pWrite(temp->getTerm());
     219        pWrite(temp->getTerm());
    216220        Print("Poly: ");
    217         //pWrite(temp->getPoly());
     221        pWrite(temp->getPoly());
    218222        Print("\n");
    219223        temp = temp->next;
     
    312316
    313317void LList::setFirst(LNode* l) {
     318    LNode* temp =   first;
     319    temp->setNext(NULL);
    314320    first       =   l;
    315321    length--;
Note: See TracChangeset for help on using the changeset viewer.