Changeset fbf8a6 in git


Ignore:
Timestamp:
Nov 10, 2010, 1:44:17 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4e8ef901f80a972f6e768843d7734db1305268ca
Parents:
8d1d30c2bf4983fc7e94265f6fac94f09b3385fb
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-11-10 13:44:17+01:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:37+01:00
Message:
p_Size
Location:
polys
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • polys/monomials/p_polys.cc

    r8d1d30c rfbf8a6  
    21612161}
    21622162#endif
    2163 /* --------------------------------------------------------------------------------*/
    2164 /* cleardenom suff                                                                 */
     2163/* ---------------------------------------------------------------------------*/
     2164/* cleardenom suff                                                           */
    21652165poly p_Cleardenom(poly ph, const ring r)
    21662166{
     
    24032403}
    24042404
     2405int p_Size(poly p, const ring r)
     2406{
     2407  int count = 0;
     2408  while ( p != NULL )
     2409  {
     2410    count+= n_Size( pGetCoeff( p ), r->cf );
     2411    pIter( p );
     2412  }
     2413  return count;
     2414}
     2415
    24052416/***************************************************************
    24062417 *
  • polys/monomials/p_polys.h

    r8d1d30c rfbf8a6  
    306306number    p_GetAllDenom(poly ph, const ring r);
    307307
     308int       pSize( poly p, const ring r );
     309
    308310static inline void p_Setm(poly p, const ring r);
    309311p_SetmProc p_GetSetmProc(ring r);
  • polys/polys.cc

    r8d1d30c rfbf8a6  
    745745#endif
    746746
    747 int pSize(poly p)
    748 {
    749   int count = 0;
    750   while ( p != NULL )
    751   {
    752     count+= nSize( pGetCoeff( p ) );
    753     pIter( p );
    754   }
    755   return count;
    756 }
    757 
    758747/*2
    759748* returns the length of a (numbers of monomials)
  • polys/polys.h

    r8d1d30c rfbf8a6  
    304304
    305305#define   pNormalize(p) p_Normalize(p,currRing)
    306 int       pSize( poly p );
     306#define   pSize(p)      p_Size(p,currRing)
    307307
    308308
Note: See TracChangeset for help on using the changeset viewer.