Changeset c462b55 in git
- Timestamp:
- Mar 22, 2011, 11:04:13 AM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 494884581702ad06eefdf632a5e1abb42bd90f4d
- Parents:
- ba0fc3d4dcb089fc5523e7af222a8f52d7cb44b8
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-03-22 11:04:13+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:09+01:00
- Location:
- libpolys/polys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/Makefile.am
rba0fc3 rc462b55 15 15 templates/p_Procs_Lib.cc \ 16 16 polys0.cc polys1.cc prCopy.cc prCopyTemplate.cc \ 17 kbuckets.cc sbuckets.cc templates/p_Procs.cc weight s.cc17 kbuckets.cc sbuckets.cc templates/p_Procs.cc weight.cc 18 18 19 19 BUILT_SOURCES = templates/p_Procs.inc … … 28 28 templates/p_Procs_Dynamic.h templates/p_Procs_Impl.h templates/p_Procs_Set.h templates/p_Procs_Static.h \ 29 29 monomials/p_polys.h monomials/polys-impl.h monomials/maps.h polys.h prCopy.h prCopyMacros.h \ 30 kbuckets.h sbuckets.h simpleideals.h weight s.h30 kbuckets.h sbuckets.h simpleideals.h weight.h 31 31 32 32 P_PROCS_CPPFLAGS_COMMON = -DDYNAMIC_VERSION -
libpolys/polys/monomials/p_polys.h
rba0fc3 rc462b55 332 332 static inline void p_SetCompP(poly a, int i, ring r); 333 333 static inline void p_SetCompP(poly a, int i, ring lmRing, ring tailRing); 334 static inline long p_MaxComp(poly p, ring lmRing, ring tailRing); 335 inline long p_MaxComp(poly p,ring lmRing) {return p_MaxComp(p,lmRing,lmRing);} 336 static inline long p_MinComp(poly p, ring lmRing, ring tailRing); 337 inline long p_MinComp(poly p,ring lmRing) {return p_MinComp(p,lmRing,lmRing);} 334 335 // returns maximal column number in the modul element a (or 0) 336 static inline long p_MaxComp(poly p, ring lmRing, ring tailRing) 337 { 338 long result,i; 339 340 if(p==NULL) return 0; 341 result = p_GetComp(p, lmRing); 342 if (result != 0) 343 { 344 loop 345 { 346 pIter(p); 347 if(p==NULL) break; 348 i = p_GetComp(p, tailRing); 349 if (i>result) result = i; 350 } 351 } 352 return result; 353 } 354 355 static inline long p_MaxComp(poly p,ring lmRing) {return p_MaxComp(p,lmRing,lmRing);} 356 357 static inline long p_MinComp(poly p, ring lmRing, ring tailRing) 358 { 359 long result,i; 360 361 if(p==NULL) return 0; 362 result = p_GetComp(p,lmRing); 363 if (result != 0) 364 { 365 loop 366 { 367 pIter(p); 368 if(p==NULL) break; 369 i = p_GetComp(p,tailRing); 370 if (i<result) result = i; 371 } 372 } 373 return result; 374 } 375 376 static inline long p_MinComp(poly p,ring lmRing) {return p_MinComp(p,lmRing,lmRing);} 338 377 339 378 /*************************************************************** -
libpolys/polys/pInline0.h
rba0fc3 rc462b55 73 73 74 74 // returns minimal column number in the modul element a (or 0) 75 PINLINE0 long p_MinComp(poly p, ring lmRing, ring tailRing)76 {77 long result,i;78 79 if(p==NULL) return 0;80 result = p_GetComp(p,lmRing);81 if (result != 0)82 {83 loop84 {85 pIter(p);86 if(p==NULL) break;87 i = p_GetComp(p,tailRing);88 if (i<result) result = i;89 }90 }91 return result;92 }93 94 // returns maximal column number in the modul element a (or 0)95 PINLINE0 long p_MaxComp(poly p, ring lmRing, ring tailRing)96 {97 long result,i;98 99 if(p==NULL) return 0;100 result = p_GetComp(p, lmRing);101 if (result != 0)102 {103 loop104 {105 pIter(p);106 if(p==NULL) break;107 i = p_GetComp(p, tailRing);108 if (i>result) result = i;109 }110 }111 return result;112 }113 114 75 BOOLEAN p_IsConstantPoly(const poly p, const ring r) 115 76 { -
libpolys/polys/sbuckets.cc
rba0fc3 rc462b55 10 10 * Version: $Id$ 11 11 *******************************************************************/ 12 #include <kernel/mod2.h>13 14 #include < kernel/sbuckets.h>12 //#include <kernel/mod2.h> 13 14 #include <polys/sbuckets.h> 15 15 #include <omalloc/omalloc.h> 16 #include < kernel/ring.h>17 #include <kernel/p_Procs.h>18 #include < kernel/p_polys.h>16 #include <polys/monomials/ring.h> 17 //#include <kernel/p_Procs.h> 18 #include <polys/monomials//p_polys.h> 19 19 20 20
Note: See TracChangeset
for help on using the changeset viewer.