Changeset 3a8520 in git


Ignore:
Timestamp:
Feb 26, 2009, 12:24:15 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
ec4a2c9179673f1cdc6b166e3d74834cf0f12cad
Parents:
60933487e53ddb20e0e5d7d5ccc137ac53893f37
Message:
*hannes: pContentRat


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

Legend:

Unmodified
Added
Removed
  • kernel/polys1.cc

    r609334 r3a8520  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys1.cc,v 1.33 2009-02-26 11:14:16 levandov Exp $ */
     4/* $Id: polys1.cc,v 1.34 2009-02-26 11:24:15 Singular Exp $ */
    55
    66/*
     
    10531053    if (h!=NULL) nDelete(&h);
    10541054 
     1055    pContent(ph);
    10551056#ifdef HAVE_RATGRING
    10561057    if (rIsRatGRing(currRing))
     
    10581059      pContentRat(ph);
    10591060    }
    1060     else
    10611061#endif
    1062       pContent(ph);
    10631062  }
    10641063}
  • kernel/ratgring.cc

    r609334 r3a8520  
    77 *  Author:  levandov (Viktor Levandovsky)
    88 *  Created: 8/00 - 11/00
    9  *  Version: $Id: ratgring.cc,v 1.18 2009-02-26 11:14:16 levandov Exp $
     9 *  Version: $Id: ratgring.cc,v 1.19 2009-02-26 11:24:15 Singular Exp $
    1010 *******************************************************************/
    1111#include "mod2.h"
     
    701701  poly p = pCopy(ph); // ph will be needed below
    702702  int HasConstantCoef = 0;
    703   int mintdeg = pTotaldegree(p);
    704   int minlen = len;
    705703  int is = currRing->real_var_start - 1;
    706704  while (p!=NULL)
     
    724722  // look for 1 element of minimal degree and of minimal length
    725723  k--;
     724  if (k<=0) // this poly is not a ratgring poly -> pContent
     725  {
     726    pDelete(&C[0]);
     727    pDelete(&LM[0]);
     728    pContent(ph);
     729    goto cleanup;
     730  }
     731  int mintdeg = pTotaldegree(p);
    726732  int dd = 0; int i;
     733  int minlen = len;
    727734  int mindeglen = len;
    728735  int pmindeglen;
Note: See TracChangeset for help on using the changeset viewer.