- Timestamp:
- Jul 5, 2017, 1:53:50 PM (7 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 32c5f947e5ea873df3119173b8d179ad7fb4197767f9e8e1fc9856b995aae2d27c9a3848419e3d138226f6e95990941b4d0fb1d572d060df2c38db62
- Parents:
- e93b00355896c3f6635d8c010d17067b1f821ea7
- Location:
- libpolys/coeffs
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/Makefile.am
re93b00 rbf5bec1 16 16 numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \ 17 17 gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \ 18 modulop.cc mpr_complex.cc \18 modulop.cc mpr_complex.cc ntupel.cc \ 19 19 bigintmat.cc AE.cc OPAE.cc AEp.cc OPAEp.cc AEQ.cc OPAEQ.cc \ 20 20 flintcf_Q.cc flintcf_Zn.cc … … 25 25 libcoeffs_la_include_HEADERS = \ 26 26 coeffs.h numbers.h si_gmp.h gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h rintegers.h rmodulo2m.h rmodulon.h \ 27 shortfl.h mpr_complex.h mpr_global.h numstats.h \27 shortfl.h mpr_complex.h mpr_global.h numstats.h ntupel.h \ 28 28 bigintmat.h Enumerator.h AE.h OPAE.h AEp.h OPAEp.h AEQ.h OPAEQ.h \ 29 29 flintcf_Q.h flintcf_Zn.h -
libpolys/coeffs/coeffs.h
re93b00 rbf5bec1 41 41 is transcendental */ 42 42 n_long_C, /**< complex floating point (GMP) numbers */ 43 n_nTupel, /**< n-tupel of cf: ZZ/p1,... ZZ/pn, R, long_R */ 43 44 n_Z, /**< only used if HAVE_RINGS is defined */ 44 45 n_Zn, /**< only used if HAVE_RINGS is defined */ -
libpolys/coeffs/gnumpfl.cc
re93b00 rbf5bec1 403 403 static char* ngfCoeffString(const coeffs r) 404 404 { 405 char *s=(char*)omAlloc( 27);406 snprintf(s, 27,"real,%d,%d",r->float_len,r->float_len2);405 char *s=(char*)omAlloc(30); 406 snprintf(s,30,"Float(%d,%d)",r->float_len,r->float_len2); 407 407 return s; 408 408 } … … 410 410 static char* ngfCoeffName(const coeffs r) 411 411 { 412 static char ngfCoeffName_buf[ 27];413 snprintf(ngfCoeffName_buf, 27,"RR(%d,%d)",r->float_len,r->float_len2);412 static char ngfCoeffName_buf[30]; 413 snprintf(ngfCoeffName_buf,30,"Float(%d,%d)",r->float_len,r->float_len2); 414 414 return ngfCoeffName_buf; 415 415 } … … 503 503 static void ngfCoeffWrite (const coeffs r, BOOLEAN /*details*/) 504 504 { 505 Print("real:%d digits, additional %d digits", 506 r->float_len,r->float_len2); /* long R */ 505 Print("Float(%d,%d)", r->float_len,r->float_len2); /* long R */ 507 506 } 508 507 -
libpolys/coeffs/numbers.cc
re93b00 rbf5bec1 25 25 #include "coeffs/ffields.h" 26 26 #include "coeffs/shortfl.h" 27 #include "coeffs/ntupel.h" 27 28 28 29 #ifdef HAVE_RINGS … … 322 323 #endif 323 324 ngcInitChar, /* n_long_C */ 325 nnInitChar, /* n_nTupel */ 324 326 #ifdef HAVE_RINGS 325 327 nrzInitChar, /* n_Z */ -
libpolys/coeffs/shortfl.cc
re93b00 rbf5bec1 64 64 { 65 65 assume( getCoeffType(r) == n_R ); 66 PrintS(" real"); /* R */66 PrintS("Float()"); /* R */ 67 67 } 68 68 … … 263 263 assume( getCoeffType(r) == n_R ); 264 264 265 #if SIZEOF_DOUBLE == SIZEOF_LONG266 char ch[16];267 int n = sprintf(ch,"%12.6e", nf(a).F());268 #else265 //#if SIZEOF_DOUBLE == SIZEOF_LONG 266 //char ch[16]; 267 //int n = sprintf(ch,"%12.6e", nf(a).F()); 268 //#else 269 269 char ch[11]; 270 270 int n = sprintf(ch,"%9.3e", nf(a).F()); 271 #endif271 //#endif 272 272 if (ch[0] == '-') 273 273 { … … 712 712 static char* nrCoeffString(const coeffs r) 713 713 { 714 return omStrDup(" real");714 return omStrDup("Float()"); 715 715 } 716 716 717 717 static char* nrCoeffName(const coeffs r) 718 718 { 719 return (char*)" real";719 return (char*)"Float()"; 720 720 } 721 721
Note: See TracChangeset
for help on using the changeset viewer.