Changeset 9a9034 in git
- Timestamp:
- May 12, 2011, 10:39:59 AM (12 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- ea000154f0b80de2f44a961be0d4a407828b72c9
- Parents:
- 6137945778b99e12da0ed42de11464a71e637602
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-12 10:39:59+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:06+01:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/gfops.cc
r613794 r9a9034 20 20 #include "canonicalform.h" 21 21 #include "variable.h" 22 #ifdef SINGULAR23 #include "singext.h"24 #endif25 22 #include "gfops.h" 26 23 … … 77 74 gf_table = new unsigned short[gf_maxtable]; 78 75 79 #ifdef SINGULAR80 // just copy the table if Singular already read it81 //printf("init_gf(gf_get_table) q=%d, nfCharQ=%d\n",q,nfCharQ);82 if ( q == nfCharQ )83 {84 gf_p = p; gf_n = n;85 gf_q = q; gf_q1 = q - 1;86 gf_m1 = nfM1;87 gf_mipo = intVec2CF( nfMinPoly[0], nfMinPoly + 1, 1 );88 (void)memcpy( gf_table, nfPlus1Table, gf_q * sizeof( unsigned short ) );89 gf_table[gf_q] = 0;90 return;91 }92 #endif93 94 76 // try to open file 95 #ifndef SINGULAR 96 sprintf( buffer, GFTABLEDIR "/gftable.%d.%d", p, n ); 77 sprintf( buffer, GFTABLEDIR "/%d", q ); 97 78 FILE * inputfile = fopen( buffer, "r" ); 98 #else99 sprintf( buffer, "gftables/%d", q );100 FILE * inputfile = feFopen( buffer, "r" );101 #endif102 79 STICKYASSERT( inputfile, "can not open GF(q) table" ); 103 80 -
factory/singext.h
r613794 r9a9034 9 9 #include "canonicalform.h" 10 10 #include "cf_gmp.h" 11 12 // we need this to copy singulars GF(q) table to ours13 extern int nfCharQ;14 extern int nfM1;15 extern int nfMinPoly[];16 extern short nfPlus1Table[];17 18 // used to open the GF(q) tables from Singular19 extern FILE * feFopen ( const char * path, const char * mode, char *where = 0, int useWerror = 0, int path_only = 0);20 11 21 12 /*BEGINPUBLIC*/
Note: See TracChangeset
for help on using the changeset viewer.