Changeset a3d94c in git
- Timestamp:
- Aug 4, 2011, 3:21:06 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- aec3112fdfcad6d6827263a54d4b4e15e771295b
- Parents:
- 6d9d85c1fd472850e2c09503b3ffc7317679da3d
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-04 15:21:06+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:14:26+01:00
- Location:
- libpolys/polys
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/kbuckets.cc
r6d9d85 ra3d94c 14 14 //#include <kernel/kutil.h> 15 15 #include <polys/kbuckets.h> 16 17 // #include <polys/operations/pShallowCopyDelete.h> 18 16 19 17 20 #ifdef HAVE_COEF_BUCKETS -
libpolys/polys/kbuckets.h
r6d9d85 ra3d94c 5 5 ****************************************/ 6 6 /* $Id$ */ 7 #include <polys/operations/pShallowCopyDelete.h>8 7 #include <polys/monomials/ring.h> 9 8 #include <polys/templates/p_Procs.h> -
libpolys/polys/monomials/ring.h
r6d9d85 ra3d94c 57 57 typedef void (*p_SetmProc)(poly p, const ring r); 58 58 59 60 /// returns a poly from dest_r which is a ShallowCopy of s_p from source_r 61 /// assumes that source_r->N == dest_r->N and that orderings are the same 62 typedef poly (*pShallowCopyDeleteProc)(poly s_p, ring source_r, ring dest_r, 63 omBin dest_bin); 59 64 60 65 -
libpolys/polys/operations/pShallowCopyDelete.cc
r6d9d85 ra3d94c 10 10 *******************************************************************/ 11 11 #include "config.h" 12 #include <polys/monomials/p_polys.h> 13 #include <polys/monomials/ring.h> 14 #include <polys/operations/pShallowCopyDelete.h> 12 #include "pShallowCopyDelete.h" 15 13 16 14 // a simple implementations -
libpolys/polys/operations/pShallowCopyDelete.h
r6d9d85 ra3d94c 9 9 * Version: $Id$ 10 10 *******************************************************************/ 11 #ifndef PSHALLOWCOPYDELETE_H 12 #define PSHALLOWCOPYDELETE_H 11 13 12 // returns a poly from dest_r which is a ShallowCopy of s_p from source_r 13 // assumes that source_r->N == dest_r->N and that orderings are the same 14 typedef poly (*pShallowCopyDeleteProc)(poly s_p, ring source_r, ring dest_r, 15 omBin dest_bin); 14 #include <polys/monomials/p_polys.h> 15 #include <polys/monomials/ring.h> 16 16 17 pShallowCopyDeleteProc pGetShallowCopyDeleteProc(ring source_r, ring dest_r); 17 18 19 #endif // PSHALLOWCOPYDELETE_H -
libpolys/polys/operations/p_Mult_q.cc
r6d9d85 ra3d94c 16 16 #endif 17 17 18 /***************************************************************19 *20 * Returns: p * q,21 * Destroys: if !copy then p, q22 * Assumes: pLength(p) >= 2 pLength(q) >=223 ***************************************************************/24 18 #include <misc/options.h> 19 25 20 #include <polys/monomials/p_polys.h> 26 21 #include <polys/templates/p_Procs.h> … … 31 26 #include <polys/kbuckets.h> 32 27 33 #include <polys/operations/p_Mult_q.h> 28 #include "p_Mult_q.h" 29 34 30 35 31 BOOLEAN pqLength(poly p, poly q, int &lp, int &lq, const int min) … … 276 272 277 273 274 /// Returns: p * q, 275 /// Destroys: if !copy then p, q 276 /// Assumes: pLength(p) >= 2 pLength(q) >=2 278 277 poly _p_Mult_q(poly p, poly q, const int copy, const ring r) 279 278 { -
libpolys/polys/operations/p_Mult_q.h
r6d9d85 ra3d94c 10 10 * Version: $Id$ 11 11 *******************************************************************/ 12 #include "config.h" 12 13 #ifndef P_MULT_Q_H 14 #define P_MULT_Q_H 15 16 #include <misc/auxiliary.h> 17 18 // #include "config.h" 13 19 // #include <polys/structs.h> 14 20 15 21 // Use buckets if min(pLength(p), pLength(q)) >= MIN_LENGTH_BUCKET 16 22 // Not thoroughly tested what is best 23 #ifndef MIN_LENGTH_BUCKET 17 24 #define MIN_LENGTH_BUCKET 10 25 #endif 18 26 19 27 // return TRUE and lp == pLength(p), lq == pLength(q), … … 24 32 BOOLEAN pqLength(poly p, poly q, int &lp, int &lq, const int min); 25 33 34 #endif // P_MULT_Q_H
Note: See TracChangeset
for help on using the changeset viewer.