Changeset f93c1c0 in git


Ignore:
Timestamp:
Jan 30, 2003, 3:59:59 PM (21 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
2eb3dbb39cecb0405a162b62f67738ea926e7e2e
Parents:
73c183e64c399fcc250e8964df3457cc5be93544
Message:
*hannes: pNormalize -> p_Normalize


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

Legend:

Unmodified
Added
Removed
  • Singular/polys.cc

    r73c183 rf93c1c0  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.78 2001-10-09 16:36:18 Singular Exp $ */
     4/* $Id: polys.cc,v 1.79 2003-01-30 14:59:59 Singular Exp $ */
    55
    66/*
     
    692692*normalize all coeffizients
    693693*/
    694 void pNormalize(poly p)
    695 {
    696   if (rField_has_simple_inverse()) return; /* Z/p, GF(p,n), R, long R/C */
     694void p_Normalize(poly p, ring r)
     695{
     696  if (rField_has_simple_inverse(r)) return; /* Z/p, GF(p,n), R, long R/C */
    697697  while (p!=NULL)
    698698  {
    699     nTest(pGetCoeff(p));
    700     nNormalize(pGetCoeff(p));
     699    if (currRing==r) {nTest(pGetCoeff(p));}
     700    n_Normalize(pGetCoeff(p),r);
    701701    pIter(p);
    702702  }
  • Singular/polys.h

    r73c183 rf93c1c0  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys.h,v 1.56 2001-03-05 16:41:49 mschulze Exp $ */
     6/* $Id: polys.h,v 1.57 2003-01-30 14:59:58 Singular Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate polynomials of the
     
    359359void      pContent(poly p);
    360360void      pCleardenom(poly p);
    361 void      pNormalize(poly p);
     361void      p_Normalize(poly p, ring r);
     362#define   pNormalize(p) p_Normalize(p,currRing)
    362363
    363364// homogenizes p by multiplying certain powers of the varnum-th variable
Note: See TracChangeset for help on using the changeset viewer.