Changeset 7ba059 in git for kernel/polys.cc


Ignore:
Timestamp:
Jul 24, 2007, 2:29:31 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
1dc959316eac2288bfe64889d2e83ce1d387c029
Parents:
2f0941897d4f1406c4c4e8071399248a0e0b6e1c
Message:
*hannes: NF, pSize, normalize etc.


git-svn-id: file:///usr/local/Singular/svn/trunk@10241 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    r2f0941 r7ba059  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.25 2007-07-23 14:11:04 motsak Exp $ */
     4/* $Id: polys.cc,v 1.26 2007-07-24 12:29:31 Singular Exp $ */
    55
    66/*
     
    765765      {
    766766        c=nDiv(pGetCoeff(h),k);
    767         if (!nIsOne(c)) nNormalize(c);
     767        // no need to normalize: Z/p, R
     768        // normalize already in nDiv: Q_a, Z/p_a
     769        // remains: Q
     770        if (rField_is_Q() && (!nIsOne(c))) nNormalize(c);
    768771        pSetCoeff(h,c);
    769772        pIter(h);
     
    10381041  return FALSE;
    10391042}
     1043
     1044int pSize(poly p)
     1045{
     1046  int count = 0;
     1047  while ( p != NULL )
     1048  {
     1049    count+= nSize( pGetCoeff( p ) );
     1050    pIter( p );
     1051  }
     1052  return count;
     1053}
     1054
Note: See TracChangeset for help on using the changeset viewer.