Changeset fbf8a6 in git
- Timestamp:
- Nov 10, 2010, 1:44:17 PM (13 years ago)
- 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
- Location:
- polys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
polys/monomials/p_polys.cc
r8d1d30c rfbf8a6 2161 2161 } 2162 2162 #endif 2163 /* --------------------------------------------------------------------------- -----*/2164 /* cleardenom suff 2163 /* ---------------------------------------------------------------------------*/ 2164 /* cleardenom suff */ 2165 2165 poly p_Cleardenom(poly ph, const ring r) 2166 2166 { … … 2403 2403 } 2404 2404 2405 int 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 2405 2416 /*************************************************************** 2406 2417 * -
polys/monomials/p_polys.h
r8d1d30c rfbf8a6 306 306 number p_GetAllDenom(poly ph, const ring r); 307 307 308 int pSize( poly p, const ring r ); 309 308 310 static inline void p_Setm(poly p, const ring r); 309 311 p_SetmProc p_GetSetmProc(ring r); -
polys/polys.cc
r8d1d30c rfbf8a6 745 745 #endif 746 746 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 758 747 /*2 759 748 * returns the length of a (numbers of monomials) -
polys/polys.h
r8d1d30c rfbf8a6 304 304 305 305 #define pNormalize(p) p_Normalize(p,currRing) 306 int pSize( poly p ); 306 #define pSize(p) p_Size(p,currRing) 307 307 308 308
Note: See TracChangeset
for help on using the changeset viewer.