Changeset 45d2332 in git
- Timestamp:
- Mar 31, 2011, 6:30:18 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 3f2fb2cdc5019bbfc97d4fa27121402be181a8a3
- Parents:
- ab4f17f53255dd31a9347110c1d434aea6bda6ae
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-03-31 18:30:18+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:16+01:00
- Location:
- libpolys
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/misc/auxiliary.h
rab4f17 r45d2332 59 59 #ifndef SIZEOF_LONG 60 60 61 #include < limits.h>61 #include <misc/mylimits.h> 62 62 63 63 #ifndef LONG_BIT -
libpolys/misc/mylimits.h
rab4f17 r45d2332 16 16 17 17 #ifdef IRIX 18 #include <om limits.h>18 #include <omalloc/omlimits.h> 19 19 #else 20 20 #include <limits.h> -
libpolys/polys/monomials/p_polys.cc
rab4f17 r45d2332 4 4 /*************************************************************** 5 5 * File: p_polys.cc 6 * Purpose: implementation of currRing independent poly procedures6 * Purpose: implementation of ring independent poly procedures? 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 8/00 … … 12 12 #include <ctype.h> 13 13 14 15 #include <omalloc/omalloc.h> 14 16 #include <misc/auxiliary.h> 17 #include <misc/options.h> 18 #include <misc/intvec.h> 19 20 #include <coeffs/longrat.h> // ??? 21 22 #include <polys/weight.h> 15 23 16 24 #include <polys/monomials/ring.h> 17 25 #include <polys/monomials/p_polys.h> 18 #include <polys/monomials/ring.h> 19 #include <polys/weight.h> 20 #include <coeffs/longrat.h> 21 #include <misc/options.h> 22 #include <misc/intvec.h> 26 23 27 // #include <???/ideals.h> 24 28 // #include <???/int64vec.h> 29 25 30 #ifndef NDEBUG 26 31 // #include <???/febase.h> 32 #endif 33 34 #ifdef HAVE_PLURAL 35 #include <polys/nc/nc.h> 36 #include <polys/nc/sca.h> 27 37 #endif 28 38 … … 744 754 long pLDeg1_Deg(poly p,int *l, const ring r) 745 755 { 746 assume(r->pFDeg == p Deg);756 assume(r->pFDeg == p_Deg); 747 757 p_CheckPolyRing(p, r); 748 758 long k= p_GetComp(p, r); … … 775 785 long pLDeg1c_Deg(poly p,int *l, const ring r) 776 786 { 777 assume(r->pFDeg == p Deg);787 assume(r->pFDeg == p_Deg); 778 788 p_CheckPolyRing(p, r); 779 789 int ll=1; … … 1313 1323 poly p_Div_nn(poly p, const number n, const ring r) 1314 1324 { 1315 pAssume(!n_IsZero(n,r ));1325 pAssume(!n_IsZero(n,r->cf)); 1316 1326 p_Test(p, r); 1317 1327 … … 2840 2850 // resets the pFDeg and pLDeg: if pLDeg is not given, it is 2841 2851 // set to currRing->pLDegOrig, i.e. to the respective LDegProc which 2842 // only uses pFDeg (and not p Deg, or pTotalDegree, etc)2852 // only uses pFDeg (and not p_Deg, or pTotalDegree, etc) 2843 2853 void pSetDegProcs(ring r, pFDegProc new_FDeg, pLDegProc new_lDeg) 2844 2854 { … … 2923 2933 if (rField_is_Ring(r)) 2924 2934 { 2925 if (!n IsUnit(pGetCoeff(p1))) return;2935 if (!n_IsUnit(pGetCoeff(p1), r->cf)) return; 2926 2936 // Werror("p_Norm not possible in the case of coefficient rings."); 2927 2937 } … … 2980 2990 { 2981 2991 #ifdef LDEBUG 2982 if (currRing==r) {nTest(pGetCoeff(p));}2992 n_Test(pGetCoeff(p), r->cf); 2983 2993 #endif 2984 2994 n_Normalize(pGetCoeff(p),r->cf); … … 3064 3074 while (non_zero != NULL) 3065 3075 { 3066 assume(p_GetExp(non_zero, n m,r) != 0);3076 assume(p_GetExp(non_zero, n, r) != 0); 3067 3077 qq = non_zero; 3068 3078 pIter(non_zero); -
libpolys/polys/monomials/p_polys.h
rab4f17 r45d2332 330 330 * 331 331 ***************************************************************/ 332 static inline poly pLast(poly a, int &length); 333 inline poly pLast(poly a) { int l; return pLast(a, l);} 332 333 // returns the length of a (numbers of monomials) 334 // respect syzComp 335 // static inline poly pLast(poly a, int &length); 336 // static inline poly pLast(poly a) { int l; return pLast(a, l); } 337 338 334 339 static inline poly pReverse(poly p) 335 340 { -
libpolys/polys/nc/nc.h
rab4f17 r45d2332 1 1 #ifndef POLYS_NC_H 2 2 #define POLYS_NC_H 3 3 4 4 5 #ifdef HAVE_PLURAL … … 35 36 36 37 // ////////////////////////////////////////////////////// 38 39 37 40 38 41 // NC pProcs: … … 181 184 182 185 186 187 // //////////////////////////////////////////////////////////////////////// // 188 // we must always have this test!? 189 inline bool rIsSCA(const ring r) 190 { 191 #ifdef HAVE_PLURAL 192 return rIsPluralRing(r) && (ncRingType(r) == nc_exterior); 193 #else 194 return false; 195 #endif 196 } 197 183 198 // //////////////////////////////////////////////////////////////////////// // 184 199 // NC inlines … … 281 296 } 282 297 298 299 300 /* subst: */ 301 poly nc_pSubst(poly p, int n, poly e, const ring r); 302 303 304 283 305 #endif /* HAVE_PLURAL */ 284 306 -
libpolys/polys/nc/sca.h
rab4f17 r45d2332 2 2 #define SCA_H 3 3 4 /**************************************** 5 * Computer Algebra System SINGULAR * 6 ****************************************/ 7 /* $Id$ */ 4 #ifdef HAVE_PLURAL 8 5 9 #include <kernel/ring.h> 10 #include <kernel/gring.h> 11 #include <kernel/structs.h> 12 #include <kernel/intvec.h> 6 #include <polys/nc/nc.h> 13 7 14 15 // we must always have this test!16 inline bool rIsSCA(const ring r)17 {18 #ifdef HAVE_PLURAL19 return rIsPluralRing(r) && (ncRingType(r) == nc_exterior);20 #else21 return false;22 #endif23 }24 25 26 #ifdef HAVE_PLURAL27 8 // we must always have this test! 28 9 inline ideal SCAQuotient(const ring r) … … 32 13 } 33 14 34 #include <kernel/gring.h>35 15 36 16
Note: See TracChangeset
for help on using the changeset viewer.