Changeset 7a8011 in git
- Timestamp:
- Apr 21, 2011, 2:12:11 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 9b9ae7fadb61129e98f779cff3f5ea3435f370a7
- Parents:
- 8167afd5e92aaed2ba8a54e3c1566fd86d339aa8
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-21 14:12:11+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:25+01:00
- Location:
- libpolys
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/gnumpc.cc
r8167af r7a8011 411 411 n->cfRePart = ngcRePart; 412 412 n->cfImPart = ngcImPart; 413 n->cfCoeffWrite = ngcCoeffWrite; 413 414 // cfSize = ndSize; 414 415 #ifdef LDEBUG … … 586 587 } 587 588 589 void ngcCoeffWrite (const coeffs r) 590 { 591 Print("// characteristic : 0 (complex:%d digits, additional %d digits)\n", 592 r->float_len, r->float_len2); /* long C */ 593 } -
libpolys/coeffs/gnumpc.h
r8167af r7a8011 44 44 45 45 void ngcDelete(number *a, const coeffs r); 46 void ngcCoeffWrite(const coeffs r); 46 47 47 48 #ifdef LDEBUG -
libpolys/coeffs/gnumpfl.cc
r8167af r7a8011 415 415 n->cfPower = ngfPower; 416 416 n->cfSetMap = ngfSetMap; 417 n->cfCoeffWrite = ngfCoeffWrite; 417 418 #ifdef LDEBUG 418 419 n->cfDBTest = ndDBTest; // not yet implemented: ngfDBTest … … 486 487 487 488 489 void ngfCoeffWrite (const coeffs r) 490 { 491 Print("// characteristic : 0 (real:%d digits, additional %d digits)\n", 492 r->float_len,r->float_len2); /* long R */ 493 } -
libpolys/coeffs/gnumpfl.h
r8167af r7a8011 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 41 41 42 void ngfDelete(number *a, const coeffs r); -
libpolys/coeffs/rintegers.cc
r8167af r7a8011 372 372 return s; 373 373 } 374 375 void nrzCoeffWrite (const coeffs r) 376 { 377 PrintS("// characteristic : 0 (Integers)\n"); 378 } 379 374 380 375 381 BOOLEAN nrzInitChar(coeffs r, void * parameter) … … 386 392 r->cfSize = nrzSize; 387 393 r->cfInt = nrzInt; 388 #ifdef HAVE_RINGS389 //r->cfDivComp = nrzDivComp; // only for ring stuff390 //r->cfIsUnit = nrzIsUnit; // only for ring stuff391 //r->cfGetUnit = nrzGetUnit; // only for ring stuff392 //r->cfExtGcd = nrzExtGcd; // only for ring stuff393 //r->cfDivBy = nrzDivBy; // only for ring stuff394 #endif394 //#ifdef HAVE_RINGS 395 r->cfDivComp = nrzDivComp; // only for ring stuff 396 r->cfIsUnit = nrzIsUnit; // only for ring stuff 397 r->cfGetUnit = nrzGetUnit; // only for ring stuff 398 r->cfExtGcd = nrzExtGcd; // only for ring stuff 399 r->cfDivBy = nrzDivBy; // only for ring stuff 400 //#endif 395 401 r->cfNeg = nrzNeg; 396 402 r->cfInvers= nrzInvers; … … 409 415 r->cfDelete= nrzDelete; 410 416 r->cfSetMap = nrzSetMap; 417 r->cfCoeffWrite = nrzCoeffWrite; 411 418 // debug stuff 412 419 -
libpolys/coeffs/rintegers.h
r8167af r7a8011 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 49 #ifdef LDEBUG 49 50 BOOLEAN nrzDBTest (number a, const char *f, const int l, const coeffs r); -
libpolys/coeffs/rmodulo2m.cc
r8167af r7a8011 25 25 26 26 extern omBin gmp_nrz_bin; /* init in rintegers*/ 27 28 void nr2mCoeffWrite (const coeffs r) 29 { 30 Print("// Z/2^%lu\n", r->modExponent); 31 } 27 32 28 33 /* for initializing function pointers */ … … 63 68 r->cfExtGcd = nr2mExtGcd; 64 69 r->cfName = ndName; 70 r->cfCoeffWrite = nr2mCoeffWrite; 65 71 #ifdef LDEBUG 66 72 r->cfDBTest = nr2mDBTest; -
libpolys/coeffs/rmodulo2m.h
r8167af r7a8011 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 51 #ifdef LDEBUG 51 52 BOOLEAN nr2mDBTest (number a, const char *f, const int l, const coeffs r); -
libpolys/coeffs/rmodulon.cc
r8167af r7a8011 25 25 26 26 extern omBin gmp_nrz_bin; 27 28 void nrnCoeffWrite (const coeffs r) 29 { 30 long l = (long)mpz_sizeinbase(r->modBase, 10) + 2; 31 char* s = (char*) omAlloc(l); 32 if (nCoeff_is_Ring_ModN(r)) Print("// Z/%s\n", s); 33 else if (nCoeff_is_Ring_PtoM(r)) Print("// Z/%s^%lu\n", s, r->modExponent); 34 omFreeSize((ADDRESS)s, l); 35 } 27 36 28 37 /* for initializing function pointers */ … … 65 74 r->cfExtGcd = nrnExtGcd; 66 75 r->cfName = ndName; 76 r->cfCoeffWrite = nrnCoeffWrite; 67 77 #ifdef LDEBUG 68 78 r->cfDBTest = nrnDBTest; -
libpolys/coeffs/rmodulon.h
r8167af r7a8011 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 50 #ifdef LDEBUG 50 51 BOOLEAN nrnDBTest (number a, const char *f, const int l, const coeffs r); -
libpolys/polys/monomials/ring.cc
r8167af r7a8011 281 281 n_CoeffWrite(r->cf); 282 282 #if 0 283 if (rField_is_GF(r))284 {285 Print("// # ground field : %d\n",r->cf->ch);286 Print("// primitive element : %s\n", r->parameter[0]);287 StringSetS("// minpoly : ");288 nfShowMipo(r->cf);PrintS(StringAppendS("\n"));289 }290 #ifdef HAVE_RINGS291 else if (rField_is_Ring(r))292 {293 PrintS("// coeff. ring is : ");294 if (rField_is_Ring_Z(r)) PrintS("Integers\n");295 long l = (long)mpz_sizeinbase(r->cf->modBase, 10) + 2;296 char* s = (char*) omAlloc(l);297 mpz_get_str(s,10,r->cf->modBase);298 if (rField_is_Ring_ModN(r)) Print("Z/%s\n", s);299 if (rField_is_Ring_2toM(r)) Print("Z/2^%lu\n", r->cf->modExponent);300 if (rField_is_Ring_PtoM(r)) Print("Z/%s^%lu\n", s, r->cf->modExponent);301 omFreeSize((ADDRESS)s, l);302 }303 #endif304 283 else 305 284 {
Note: See TracChangeset
for help on using the changeset viewer.