Changeset 03f7b5 in git for libpolys/coeffs
- Timestamp:
- Oct 11, 2011, 7:22:48 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- 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/coeffs
- Files:
-
- 18 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 );
Note: See TracChangeset
for help on using the changeset viewer.