Changeset da5d77 in git
- Timestamp:
- Mar 16, 2012, 9:31:18 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- bbe9548df00466bc1a7e2d22f1e5662d1f4614fa
- Parents:
- 66b9679c3d696e061e7f06abdc3f5ddf7c9f2991
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-16 21:31:18+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-17 18:45:31+01:00
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r66b967 rda5d77 4446 4446 { 4447 4447 number nn=(number)v->Data(); 4448 res->data = (char *)(long)n_ParDeg(nn, currRing->cf);4448 res->data = (char *)(long)n_ParDeg(nn, currRing); 4449 4449 return FALSE; 4450 4450 } -
libpolys/coeffs/coeffs.h
r66b967 rda5d77 630 630 static inline number n_ChineseRemainder(number *a, number *b, int rl, const coeffs r) 631 631 { 632 assume(r != NULL); 633 return r->cfChineseRemainder(a,b,rl,r); 632 assume(r != NULL); assume(r->cfChineseRemainder != NULL); return r->cfChineseRemainder(a,b,rl,r); 634 633 } 635 634 636 635 static inline number n_Farey(number a, number b, const coeffs r) 637 636 { 638 assume(r != NULL); 639 return r->cfFarey(a,b,r); 637 assume(r != NULL); assume(r->cfFarey != NULL); return r->cfFarey(a,b,r); 640 638 } 641 639 642 640 static inline int n_ParDeg(number n, const coeffs r) 643 641 { 644 assume(r != NULL); 645 return r->cfParDeg(n,r); 642 assume(r != NULL); assume(r->cfParDeg != NULL); return r->cfParDeg(n,r); 646 643 } 647 644 -
libpolys/coeffs/ffields.cc
r66b967 rda5d77 28 28 number nfInit (long i, const coeffs r); 29 29 number nfParameter (int i, const coeffs r); 30 int nfParDeg (number n, const coeffs r);31 30 int nfInt (number &n, const coeffs r); 32 31 number nfAdd (number a, number b, const coeffs r); … … 237 236 * the degree of the "alg. number" 238 237 */ 239 int nfParDeg(number n, const coeffs r)238 static int nfParDeg(number n, const coeffs r) 240 239 { 241 240 #ifdef LDEBUG … … 884 883 // debug stuff 885 884 r->cfCoeffWrite=nfCoeffWrite; 885 886 r->cfParDeg = nfParDeg; 886 887 887 888 #ifdef LDEBUG -
libpolys/coeffs/numbers.cc
r66b967 rda5d77 87 87 } 88 88 89 int ndParDeg(number n, const coeffs r)89 static int ndParDeg(number n, const coeffs r) 90 90 { 91 91 return (-n_IsZero(n,r)); -
libpolys/polys/OBSOLETE_pInitContent.cc
r66b967 rda5d77 168 168 } 169 169 170 void pSimpleContent(poly ph,int smax) 170 void pSimpleContent(poly ph,int smax) // in currRing! 171 171 { 172 172 //if(TEST_OPT_CONTENTSB) return; … … 228 228 } 229 229 230 number pInitContent(poly ph) 230 number pInitContent(poly ph) // in currRing! 231 231 // only for coefficients in Q 232 232 #if 0 … … 313 313 #endif 314 314 315 number pInitContent_a(poly ph) 315 number pInitContent_a(poly ph) // in currRing! 316 316 // only for coefficients in K(a) anf K(a,...) 317 317 { 318 318 number d=pGetCoeff(ph); 319 int s=n aParDeg(d);320 if (s /* n aParDeg(d)*/ <=1) return naCopy(d);319 int s=n_ParDeg(d, currRing); 320 if (s /* n_ParDeg(d, currRing)*/ <=1) return naCopy(d); 321 321 int s2=-1; 322 322 number d2; … … 330 330 break; 331 331 } 332 if ((ss=n aParDeg(pGetCoeff(ph)))<s)332 if ((ss=n_ParDeg(pGetCoeff(ph), currRing))<s) 333 333 { 334 334 s2=s; -
libpolys/polys/coeffrings.h
r66b967 rda5d77 47 47 #endif 48 48 49 49 static inline int n_ParDeg(number n, const ring r){ assume(r != NULL); assume(r->cf != NULL); return n_ParDeg(n,r->cf); } 50 50 51 51 #endif /* COEFFRINGS_H */ -
libpolys/polys/ext_fields/algext.cc
r66b967 rda5d77 781 781 } 782 782 783 int naParDeg(number a, const coeffs cf)783 static int naParDeg(number a, const coeffs cf) 784 784 { 785 785 if (a == NULL) return -1; -
libpolys/polys/ext_fields/transext.cc
r66b967 rda5d77 1350 1350 #endif 1351 1351 1352 int ntParDeg(number a, const coeffs cf)1352 static int ntParDeg(number a, const coeffs cf) 1353 1353 { 1354 1354 if (IS0(a)) return -1;
Note: See TracChangeset
for help on using the changeset viewer.