Changeset 03f7b5 in git
- Timestamp:
- Oct 11, 2011, 7:22:48 PM (12 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- 3c56d88ff43b9f485d15dbe25b01664e8e072f04
- Parents:
- 5f4015a4722191e67435fb8503aa693c23375458
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-10-11 19:22:48+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:59+01:00
- Location:
- libpolys
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/coeffs.h
r5f4015a r03f7b5 100 100 101 101 /// output of coeff description via Print 102 void (*cfCoeffWrite)(const coeffs r );102 void (*cfCoeffWrite)(const coeffs r, BOOLEAN details); 103 103 104 104 // the union stuff … … 541 541 542 542 /// output the coeff description 543 static inline void n_CoeffWrite(const coeffs r )544 { assume(r != NULL); assume(r->cfCoeffWrite != NULL); r->cfCoeffWrite(r ); }543 static inline void n_CoeffWrite(const coeffs r, BOOLEAN details = TRUE) 544 { assume(r != NULL); assume(r->cfCoeffWrite != NULL); r->cfCoeffWrite(r, details); } 545 545 546 546 // Tests: -
libpolys/coeffs/ffields.cc
r5f4015a r03f7b5 868 868 } 869 869 870 void nfCoeffWrite (const coeffs r )870 void nfCoeffWrite (const coeffs r, BOOLEAN details) 871 871 { 872 872 // m_nfCharQ = p^k where p is the characteristic (r->CharP) and k is GFDegree 873 873 Print("// # ground field : %d\n",r->m_nfCharQ); 874 874 Print("// primitive element : %s\n", r->m_nfParameter); 875 StringSetS("// minpoly : "); 876 nfShowMipo(r);PrintS(StringAppendS("\n")); 875 if ( details ) 876 { 877 StringSetS("// minpoly : "); 878 nfShowMipo(r); 879 PrintS(StringAppendS("\n")); 880 } 881 else PrintS("// minpoly : ...\n"); 877 882 } 878 883 -
libpolys/coeffs/ffields.h
r5f4015a r03f7b5 42 42 void nfReadTable (const int c, const coeffs r); 43 43 44 void nfCoeffWrite(const coeffs r );44 void nfCoeffWrite(const coeffs r, BOOLEAN details); 45 45 void nfShowMipo(const coeffs r); 46 46 #endif -
libpolys/coeffs/gnumpc.cc
r5f4015a r03f7b5 610 610 } 611 611 612 void ngcCoeffWrite (const coeffs r )612 void ngcCoeffWrite (const coeffs r, BOOLEAN details) 613 613 { 614 614 Print("// characteristic : 0 (complex:%d digits, additional %d digits)\n", 615 r->float_len, r->float_len2); /* long C */ 616 } 615 r->float_len, r->float_len2); /* long C */ 616 Print("// 1 parameter : %s\n", r->complex_parameter); 617 Print("// minpoly : (%s^2+1)\n", r->complex_parameter); 618 } -
libpolys/coeffs/gnumpc.h
r5f4015a r03f7b5 45 45 46 46 void ngcDelete(number *a, const coeffs r); 47 void ngcCoeffWrite(const coeffs r );47 void ngcCoeffWrite(const coeffs r, BOOLEAN details); 48 48 49 49 #ifdef LDEBUG -
libpolys/coeffs/gnumpfl.cc
r5f4015a r03f7b5 521 521 522 522 523 void ngfCoeffWrite (const coeffs r )523 void ngfCoeffWrite (const coeffs r, BOOLEAN /*details*/) 524 524 { 525 525 Print("// characteristic : 0 (real:%d digits, additional %d digits)\n", -
libpolys/coeffs/gnumpfl.h
r5f4015a r03f7b5 38 38 number ngf_Copy(number a, coeffs r); 39 39 void ngfWrite(number &a, const coeffs r); 40 void ngfCoeffWrite(const coeffs r );40 void ngfCoeffWrite(const coeffs r, BOOLEAN details); 41 41 42 42 void ngfDelete(number *a, const coeffs r); -
libpolys/coeffs/longrat.cc
r5f4015a r03f7b5 2559 2559 } 2560 2560 2561 void nlCoeffWrite (const coeffs )2561 void nlCoeffWrite (const coeffs, BOOLEAN /*details*/) 2562 2562 { 2563 2563 PrintS("// characteristic : 0\n"); -
libpolys/coeffs/longrat.h
r5f4015a r03f7b5 91 91 number nlGetDenom(number &n, const coeffs r); 92 92 number nlGetNumerator(number &n, const coeffs r); 93 void nlCoeffWrite(const coeffs r );93 void nlCoeffWrite(const coeffs r, BOOLEAN details); 94 94 number nlChineseRemainder(number *x, number *q,int rl, const coeffs C); 95 95 number nlFarey(number nN, number nP, const coeffs CF); -
libpolys/coeffs/modulop.cc
r5f4015a r03f7b5 813 813 #endif 814 814 815 void npCoeffWrite (const coeffs r )815 void npCoeffWrite (const coeffs r, BOOLEAN /*details*/) 816 816 { 817 817 Print("// characteristic : %d\n",r->npPrimeM); -
libpolys/coeffs/modulop.h
r5f4015a r03f7b5 42 42 BOOLEAN npEqual (number a, number b,const coeffs r); 43 43 void npWrite (number &a, const coeffs r); 44 void npCoeffWrite (const coeffs r );44 void npCoeffWrite (const coeffs r, BOOLEAN details); 45 45 const char * npRead (const char *s, number *a,const coeffs r); 46 46 #ifdef LDEBUG -
libpolys/coeffs/rintegers.cc
r5f4015a r03f7b5 377 377 } 378 378 379 void nrzCoeffWrite (const coeffs )379 void nrzCoeffWrite (const coeffs, BOOLEAN /*details*/) 380 380 { 381 381 PrintS("// characteristic : 0 (Integers)\n"); -
libpolys/coeffs/rintegers.h
r5f4015a r03f7b5 46 46 const char * nrzRead (const char *s, number *a, const coeffs r); 47 47 char * nrzName (number n, const coeffs r); 48 void nrzCoeffWrite (const coeffs r );48 void nrzCoeffWrite (const coeffs r, BOOLEAN details); 49 49 #ifdef LDEBUG 50 50 BOOLEAN nrzDBTest (number a, const char *f, const int l, const coeffs r); -
libpolys/coeffs/rmodulo2m.cc
r5f4015a r03f7b5 29 29 extern omBin gmp_nrz_bin; /* init in rintegers*/ 30 30 31 void nr2mCoeffWrite (const coeffs r )31 void nr2mCoeffWrite (const coeffs r, BOOLEAN /*details*/) 32 32 { 33 33 Print("// Z/2^%lu\n", r->modExponent); -
libpolys/coeffs/rmodulo2m.h
r5f4015a r03f7b5 48 48 const char * nr2mRead (const char *s, number *a, const coeffs r); 49 49 char * nr2mName (number n, const coeffs r); 50 void nr2mCoeffWrite (const coeffs r );50 void nr2mCoeffWrite (const coeffs r, BOOLEAN details); 51 51 #ifdef LDEBUG 52 52 BOOLEAN nr2mDBTest (number a, const char *f, const int l, const coeffs r); -
libpolys/coeffs/rmodulon.cc
r5f4015a r03f7b5 29 29 extern omBin gmp_nrz_bin; 30 30 31 void nrnCoeffWrite (const coeffs r )31 void nrnCoeffWrite (const coeffs r, BOOLEAN /*details*/) 32 32 { 33 33 long l = (long)mpz_sizeinbase(r->modBase, 10) + 2; -
libpolys/coeffs/rmodulon.h
r5f4015a r03f7b5 47 47 #define nrnWrite nrzWrite 48 48 const char * nrnRead (const char *s, number *a, const coeffs r); 49 void nrnCoeffWrite (const coeffs r );49 void nrnCoeffWrite (const coeffs r, BOOLEAN details); 50 50 #ifdef LDEBUG 51 51 BOOLEAN nrnDBTest (number a, const char *f, const int l, const coeffs r); -
libpolys/coeffs/shortfl.cc
r5f4015a r03f7b5 47 47 48 48 49 void nrCoeffWrite (const coeffs r )49 void nrCoeffWrite (const coeffs r, BOOLEAN /*details*/) 50 50 { 51 51 assume( getCoeffType(r) == ID ); -
libpolys/polys/ext_fields/algext.cc
r5f4015a r03f7b5 70 70 #define naMinpoly naRing->minideal->m[0] 71 71 72 73 72 /// forward declarations 74 73 BOOLEAN naGreaterZero(number a, const coeffs cf); … … 97 96 int naSize(number a, const coeffs cf); 98 97 void naDelete(number *a, const coeffs cf); 99 void naCoeffWrite(const coeffs cf );98 void naCoeffWrite(const coeffs cf, BOOLEAN details); 100 99 number naIntDiv(number a, number b, const coeffs cf); 101 100 const char * naRead(const char *s, number *a, const coeffs cf); 101 102 102 static BOOLEAN naCoeffIsEqual(const coeffs cf, n_coeffType n, void * param); 103 103 … … 256 256 } 257 257 258 void naCoeffWrite(const coeffs cf )258 void naCoeffWrite(const coeffs cf, BOOLEAN details) 259 259 { 260 260 assume( cf != NULL ); … … 265 265 assume( A->cf != NULL ); 266 266 267 n_CoeffWrite(A->cf );267 n_CoeffWrite(A->cf, details); 268 268 269 269 // rWrite(A); … … 277 277 Print("%s ", rRingVar(nop, A)); 278 278 279 PrintLn(); 280 279 281 const ideal I = A->minideal; 280 282 … … 282 284 assume( IDELEMS(I) == 1 ); 283 285 284 PrintS("\n// minpoly : ("); p_Write0( I->m[0], A); PrintS(")\n"); 286 287 if ( details ) 288 { 289 PrintS("// minpoly : ("); 290 p_Write0( I->m[0], A); 291 PrintS(")"); 292 } 293 else 294 PrintS("// minpoly : ..."); 295 296 PrintLn(); 285 297 286 298 /* -
libpolys/polys/ext_fields/transext.cc
r5f4015a r03f7b5 118 118 int ntSize(number a, const coeffs cf); 119 119 void ntDelete(number * a, const coeffs cf); 120 void ntCoeffWrite(const coeffs cf );120 void ntCoeffWrite(const coeffs cf, BOOLEAN details); 121 121 number ntIntDiv(number a, number b, const coeffs cf); 122 122 const char * ntRead(const char *s, number *a, const coeffs cf); … … 377 377 } 378 378 379 void ntCoeffWrite(const coeffs cf )379 void ntCoeffWrite(const coeffs cf, BOOLEAN details) 380 380 { 381 381 assume( cf != NULL ); … … 386 386 assume( A->cf != NULL ); 387 387 388 n_CoeffWrite(A->cf );388 n_CoeffWrite(A->cf, details); 389 389 390 390 // rWrite(A); … … 401 401 402 402 PrintS("\n// minpoly : 0\n"); 403 404 403 405 404 /* -
libpolys/polys/ext_fields/transext.h
r5f4015a r03f7b5 125 125 int ntSize(number a, const coeffs cf); 126 126 void ntDelete(number * a, const coeffs cf); 127 void ntCoeffWrite(const coeffs cf );127 void ntCoeffWrite(const coeffs cf, BOOLEAN details); 128 128 number ntIntDiv(number a, number b, const coeffs cf); 129 129 const char * ntRead(const char *s, number *a, const coeffs cf); -
libpolys/polys/monomials/ring.cc
r5f4015a r03f7b5 245 245 nblocks--; 246 246 247 n_CoeffWrite(r->cf );247 n_CoeffWrite(r->cf, details); 248 248 #if 0 249 249 {
Note: See TracChangeset
for help on using the changeset viewer.