Changeset 1e6734 in git


Ignore:
Timestamp:
Nov 6, 2009, 3:53:53 PM (14 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '5d369c3cbad1a1bf2d5c856a48fb8a30b51cec3b')
Children:
822e655d18d08e0974d10c5f667eba284bff1e0a
Parents:
83f349c17bc61f05628b00a81b245ebb3b00eac6
Message:
pCopy bug removed

git-svn-id: file:///usr/local/Singular/svn/trunk@12253 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/TestMinors.cc

    r83f349c r1e6734  
    361361  // containers for all upcoming results
    362362  PolyMinorValue theMinor;
    363   poly po;
     363  poly po = NULL;
    364364  ideal iii = idInit(1, 0);
    365365
     
    376376      totalAdditionsAccumulated += theMinor.getAccumulatedAdditions();
    377377      totalAdditions += theMinor.getAdditions();
    378       idInsertPoly(iii, po); // will include po only if it is not the zero polynomial
     378      idInsertPoly(iii, pCopy(po)); // will include po only if it is not the zero polynomial
    379379    }
    380380  }
     
    394394      totalAdditionsAccumulated += theMinor.getAccumulatedAdditions();
    395395      totalAdditions += theMinor.getAdditions();
    396       idInsertPoly(iii, po); // will include po only if it is not the zero polynomial
     396      idInsertPoly(iii, pCopy(po)); // will include po only if it is not the zero polynomial
    397397    }
    398398  }
    399399  idSkipZeroes(iii);  // remove zero generators (resulting from block-wise allocation of memory)
    400 
    401400  PrintLn(); PrintS("numbers of performed operations");
    402401  PrintLn(); PrintS("   polynomial-to-polynomial multiplications: ");
     
    409408  sprintf(h, "%d", totalAdditionsAccumulated); PrintS(h); PrintS(")");
    410409  PrintLn(); PrintLn();
    411 
    412410  return iii;
    413411}
  • Singular/extra.cc

    r83f349c r1e6734  
    21972197                 (h->next->next->next->next->next->next->Typ() == INT_CMD) &&
    21982198                 (h->next->next->next->next->next->next->next->Typ() == INT_CMD) &&
    2199                  (h->next->next->next->next->next->next->next->next == NULL))
     2199                 (h->next->next->next->next->next->next->next->next->Typ() == INT_CMD) &&
     2200                 (h->next->next->next->next->next->next->next->next->next == NULL))
    22002201        {
    22012202          const matrix m           = (const matrix)h->Data();
Note: See TracChangeset for help on using the changeset viewer.