Changeset 1a68d1d in git


Ignore:
Timestamp:
Dec 4, 2009, 4:23:39 PM (14 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a23a297b3ce46de66672d1b0f7796e93c2ccb4de
Parents:
110e7218b8ba9a4ff67f658f9c7d7256229b44f2
Message:
added method for insertion of polys in ideal with check for duplicates

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

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    r110e721 r1a68d1d  
    558558
    559559/*2
     560* concat h1 and h2 (if h2 is neither zero nor a generator of h1)
     561*/
     562void idInsertPolyNoDuplicates (ideal h1,poly h2)
     563{
     564  bool h2FoundInH1 = false;
     565  int i = 0;
     566  while ((i < IDELEMS(h1)) && (!h2FoundInH1))
     567  {
     568    h2FoundInH1 = pEqualPolys(h1->m[i], h2);
     569    i++;
     570  }
     571  if (!h2FoundInH1) idInsertPoly(h1, h2);
     572}
     573
     574/*2
    560575* h1 + h2
    561576*/
  • kernel/ideals.h

    r110e721 r1a68d1d  
    5555  /* h1 + h2 */
    5656void idInsertPoly (ideal h1,poly h2);
     57  /* h1 + h2 */
     58void idInsertPolyNoDuplicates (ideal h1,poly h2);
    5759  /* h1 + h2 */
    5860ideal idMult (ideal h1,ideal h2);
Note: See TracChangeset for help on using the changeset viewer.