Changeset e070895 in git


Ignore:
Timestamp:
Oct 6, 2009, 11:32:54 AM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
16a86e2831249582a4e9cc321c76313bad539fdd
Parents:
3e96c5dc8f5e261b746d32bb4d985ec8def80154
Message:
*hannes; idInsertPoly


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

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    r3e96c5d re070895  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.79 2009-09-29 10:36:23 Singular Exp $ */
     4/* $Id: ideals.cc,v 1.80 2009-10-06 09:32:54 Singular Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    7070}
    7171
    72 //#ifndef __OPTIMIZE__
    73 // this is mainly for outputting an ideal within the debugger & DetailedPrint
     72#ifndef __OPTIMIZE__
     73// this is only for outputting an ideal within the debugger
    7474void idShow(const ideal id, const ring lmRing, const ring tailRing, const int debugPrint)
    7575{
     
    9191  }
    9292}
    93 //#endif
     93#endif
    9494
    9595/*2
     
    541541
    542542/*2
     543* concat h1 and h2
     544*/
     545void idInsertPoly (ideal h1,poly h2)
     546{
     547  if (h2==NULL) return;
     548  int j = IDELEMS(h1)-1;
     549  while ((j >= 0) && (h1->m[j] == NULL)) j--;
     550  j++;
     551  if (j==IDELEMS(h1))
     552  {
     553    pEnlargeSet(&(h1->m),IDELEMS(h1),16);
     554    IDELEMS(h1)+=16;
     555  }
     556  h1->m[j]=h2;
     557}
     558
     559/*2
    543560* h1 + h2
    544561*/
  • kernel/ideals.h

    r3e96c5d re070895  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ideals.h,v 1.14 2009-07-20 12:00:50 motsak Exp $ */
     6/* $Id: ideals.h,v 1.15 2009-10-06 09:32:54 Singular Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate ideals
     
    5555  /*adds the quotient ideal*/
    5656ideal idAdd (ideal h1,ideal h2);
     57  /* h1 + h2 */
     58void idInsertPoly (ideal h1,poly h2);
    5759  /* h1 + h2 */
    5860ideal idMult (ideal h1,ideal h2);
Note: See TracChangeset for help on using the changeset viewer.