Changeset 13366d in git
- Timestamp:
- Apr 20, 2011, 5:56:26 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- c5412f9a6a13ab8833d5cbe0867056162b572292
- Parents:
- dd693af15271046d17b3936568ad7f4e972fe37a
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-20 17:56:26+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:22+01:00
- Location:
- libpolys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/ring.cc
rdd693a r13366d 14 14 #include <omalloc/omalloc.h> 15 15 #include <misc/options.h> 16 #include <misc/intvec.h>17 16 #include <polys/monomials/ring.h> 18 17 #include <polys/monomials/p_polys.h> … … 2733 2732 2734 2733 2735 bool rSetISReference(const ideal F, const int i, const int p, const intvec * componentWeights, const ring r);2736 2737 2738 2734 /*2 2739 2735 * create a copy of the ring r, which must be equivalent to currRing … … 2949 2945 ideal F = idrHeadR(r->typ[i].data.is.F, r, res); // Copy F from r into res! 2950 2946 assume( 2951 rSetISReference( 2947 rSetISReference( res, 2952 2948 F, // WILL BE COPIED! 2953 2949 r->typ[i].data.is.limit, 2954 2950 j++, 2955 r->typ[i].data.is.componentWeights ,// WILL BE COPIED2956 res)2951 r->typ[i].data.is.componentWeights // WILL BE COPIED 2952 ) 2957 2953 ); 2958 2954 id_Delete(&F, res); … … 4942 4938 /// We will use it AS IS! 4943 4939 /// returns true is everything was allright! 4944 bool rSetISReference(const ideal F, const ring r,const int i = 0, const int p = 0, const intvec * componentWeights = NULL)4940 BOOLEAN rSetISReference(const ring r, const ideal F, const int i, const int p, const intvec * componentWeights) 4945 4941 { 4946 4942 // Put the reference set F into the ring -ordering -recor … … 4957 4953 { 4958 4954 dReportError("Error: WRONG USE of rSetISReference: wrong ring! (typ == NULL)"); 4959 return false;4955 return FALSE; 4960 4956 } 4961 4957 … … 4966 4962 { 4967 4963 dReportError("Error: WRONG USE of rSetISReference: specified ordering block was not found!!!" ); 4968 return false;4964 return FALSE; 4969 4965 } 4970 4966 … … 5013 5009 #endif 5014 5010 5015 return true;5011 return TRUE; 5016 5012 } 5017 5013 -
libpolys/polys/monomials/ring.h
rdd693a r13366d 10 10 11 11 /* includes */ 12 #include <omalloc/omalloc.h> 13 #include <misc/auxiliary.h> 12 14 #include <coeffs/coeffs.h> 13 #include <omalloc/omalloc.h>14 15 //#include <polys/monomials/polys-impl.h> 15 16 // … … 664 665 // 665 666 667 BOOLEAN rSetISReference(const ring r, const ideal F, const int i = 0, const int p = 0, const intvec * componentWeights = NULL); 668 666 669 BOOLEAN rCheckIV(intvec *iv); 667 670 int rTypeOfMatrixOrder(intvec * order); -
libpolys/polys/nc/sca.cc
rdd693a r13366d 82 82 poly sca_ReduceSpoly(const poly p1, poly p2, const ring r); 83 83 84 /* 84 85 // Modified Plural's Buchberger's algorithmus. 85 86 ideal sca_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing); … … 90 91 // Modified modern Sinuglar Mora's algorithm. 91 92 ideal sca_mora(const ideal F, const ideal Q, const intvec *w, const intvec *, kStrategy strat, const ring _currRing); 93 */ 92 94 93 95 … … 1497 1499 // NOTE: rSaveRing == currRing now! 1498 1500 // NOTE: there is no better way to check this in general! 1499 extern poly kNF(ideal I, ideal Q, poly f, int a, int b, const ring r); 1500 1501 square = kNF(idQuotient, NULL, square, 0, 1, rG); // must ran in currRing == rG! 1501 1502 ////// TODO!!!!! 1503 ////// extern poly kNF(ideal I, ideal Q, poly f, int a, int b, const ring r); 1504 ////// square = kNF(idQuotient, NULL, square, 0, 1, rG); // must ran in currRing == rG! 1502 1505 1503 1506 if( square != NULL ) // var(i)^2 is not in Q? … … 2532 2535 // Print("Local case => GB == mora!\n"); 2533 2536 #endif 2534 rGR->GetNC()->p_Procs.GB = sca_mora; // local ordering => Mora, otherwise - Buchberger!2537 rGR->GetNC()->p_Procs.GB = NULL; // sca_mora; // local ordering => Mora, otherwise - Buchberger! 2535 2538 } 2536 2539 else … … 2539 2542 // Print("Global case => GB == bba!\n"); 2540 2543 #endif 2541 rGR->GetNC()->p_Procs.GB = sca_bba; // sca_gr_bba; // sca_bba? // sca_bba;2544 rGR->GetNC()->p_Procs.GB = NULL; // sca_bba; // sca_gr_bba; // sca_bba? // sca_bba; 2542 2545 } 2543 2546 -
libpolys/tests/Makefile.am
rdd693a r13366d 23 23 24 24 coeffs_test_LDADD = -lcoeffs_g ${GMP_LIBS} -lresources_g -lreporter_g -lmisc -lomalloc_debug 25 polys_test_LDADD = -lpolys_g $(coeffs_test_LDADD)25 polys_test_LDADD = -lpolys_g -ldl $(coeffs_test_LDADD) 26 26 27 27
Note: See TracChangeset
for help on using the changeset viewer.