Changeset 146c603 in git for libpolys/polys/ext_fields/algext.cc
- Timestamp:
- Nov 9, 2011, 10:13:02 AM (12 years ago)
- Branches:
- (u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
- Children:
- 8f40312428677d88ab37a31824f2ec53f144a18a
- Parents:
- fc497757365979d0168460de9969b49bc49c53f2
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-11-09 10:13:02+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:14:12+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/algext.cc
rfc4977 r146c603 44 44 #include <polys/simpleideals.h> 45 45 46 #ifdef HAVE_FACTORY 47 #include <polys/clapconv.h> 48 #include <factory/factory.h> 49 #endif 50 46 51 #include "ext_fields/algext.h" 47 52 #define TRANSEXT_PRIVATES 1 … … 522 527 } 523 528 529 void naNormalize(number &a, const coeffs cf) 530 { 531 poly aa=(poly)a; 532 definiteReduce(aa,naMinpoly,cf); 533 a=(number)aa; 534 } 535 536 #ifdef HAVE_FACTORY 537 number naConvFactoryNSingN( const CanonicalForm n, const coeffs cf) 538 { 539 if (n.isZero()) return NULL; 540 poly p=convFactoryPSingP(n,naRing); 541 return (number)p; 542 } 543 CanonicalForm naConvSingNFactoryN( number n, BOOLEAN setChar, const coeffs cf ) 544 { 545 naTest(n); 546 if (n==NULL) return CanonicalForm(0); 547 548 return convSingPFactoryP((poly)n,naRing); 549 } 550 #endif 551 552 524 553 /* IMPORTANT NOTE: Since an algebraic field extension is again a field, 525 554 the gcd of two elements is not very interesting. (It … … 735 764 cf->cfImPart = naImPart; 736 765 cf->cfCoeffWrite = naCoeffWrite; 766 cf->cfNormalize = naNormalize; 737 767 #ifdef LDEBUG 738 768 cf->cfDBTest = naDBTest; … … 744 774 cf->cfInvers = naInvers; 745 775 cf->cfIntDiv = naDiv; 776 #ifdef HAVE_FACTORY 777 cf->convFactoryNSingN=naConvFactoryNSingN; 778 cf->convSingNFactoryN=naConvSingNFactoryN; 779 #endif 746 780 747 781 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.