Changeset 5d68a6 in git
- Timestamp:
- Dec 17, 2008, 4:08:50 PM (14 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 06babc58e0b2f4d1aa9531df0295f716578651d1
- Parents:
- aa5055c85d54ecfba96a8906de445fdb57edb98d
- Location:
- kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/clapconv.cc
raa5055 r5d68a6 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapconv.cc,v 1.1 1 2008-04-08 16:59:53Singular Exp $5 // $Id: clapconv.cc,v 1.12 2008-12-17 15:07:46 Singular Exp $ 6 6 /* 7 7 * ABSTRACT: convert data between Singular and factory … … 22 22 #include "ring.h" 23 23 #include "sbuckets.h" 24 #include "ffields.h" 25 void out_cf(char *s1,const CanonicalForm &f,char *s2); 24 26 25 27 static void convRec( const CanonicalForm & f, int * exp, poly & result ); … … 625 627 } 626 628 627 #if 0628 629 CanonicalForm 629 630 convSingGFFactoryGF( poly p ) 630 631 { 631 CanonicalForm result = 0;632 CanonicalForm result=CanonicalForm(0); 632 633 int e, n = pVariables; 633 634 … … 635 636 { 636 637 CanonicalForm term; 637 term = make_cf_from_gf( pGetCoeff( p ) ); 638 term = make_cf_from_gf( (int)(long)pGetCoeff( p ) ); 639 //int * A=(int *)&term; 640 //Print("term=%x, == 0 ?: %d\n",*A, term.isZero()); 638 641 for ( int i = 1; i <= n; i++ ) 639 642 { … … 687 690 } 688 691 } 689 #endif690 692 691 693 int convFactoryISingI( const CanonicalForm & f) -
kernel/clapsing.cc
raa5055 r5d68a6 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.cc,v 1.3 1 2008-09-12 14:16:01Singular Exp $5 // $Id: clapsing.cc,v 1.32 2008-12-17 15:08:50 Singular Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory … … 17 17 #include "numbers.h" 18 18 #include "ring.h" 19 #include "ffields.h" 19 20 #include <factory.h> 20 21 #include "clapconv.h" … … 554 555 } 555 556 } 557 #if 0 // not yet working 558 else if (rField_is_GF()) 559 { 560 //Print("GF(%d^%d)\n",nfCharP,nfMinPoly[0]); 561 setCharacteristic( nfCharP,nfMinPoly[0], currRing->parameter[0][0] ); 562 CanonicalForm F( convSingGFFactoryGF( f ) ), G( convSingGFFactoryGF( g ) ); 563 res = convFactoryGFSingGF( F / G ); 564 } 565 #endif 556 566 else 557 567 WerrorS( feNotImplemented ); -
kernel/ffields.cc
raa5055 r5d68a6 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ffields.cc,v 1. 9 2008-03-19 17:44:08Singular Exp $ */4 /* $Id: ffields.cc,v 1.10 2008-12-17 15:07:46 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: finite fields with a none-prime number of elements (via tables) … … 18 18 int nfCharQ=0; /* the number of elemts: q*/ 19 19 int nfM1; /*representation of -1*/ 20 staticint nfCharP=0; /* the characteristic: p*/20 int nfCharP=0; /* the characteristic: p*/ 21 21 static int nfCharQ1=0; /* q-1 */ 22 22 CARDINAL *nfPlus1Table=NULL; /* the table i=log(z^i) -> log(z^i+1) */ -
kernel/ffields.h
raa5055 r5d68a6 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ffields.h,v 1. 2 2008-03-19 17:44:08Singular Exp $ */6 /* $Id: ffields.h,v 1.3 2008-12-17 15:07:46 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: finite fields with a none-prime number of elements (via tables) … … 38 38 char * nfName (number n); 39 39 extern int nfMinPoly[]; 40 extern int nfCharP; /* the characteristic: p*/ 41 extern int nfCharQ; /* p^n = number of el. = repr. of 0 */ 40 42 void nfShowMipo(); 41 43 #endif
Note: See TracChangeset
for help on using the changeset viewer.