- Timestamp:
- Nov 14, 2016, 3:14:23 PM (7 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 59ef0762a78769ee649f91a7c5efbe2f6cca9c3063f46d58a72834b7842693e4f7b37f3a08a1b55b
- Parents:
- 3fec5d04607bb2dbc78498417a5ca31c056e2b82
- Location:
- libpolys
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/AE.cc
r3fec5d0 r3c0710 6 6 #include <math.h> 7 7 8 #ifdef SINGULAR_4_ 18 #ifdef SINGULAR_4_2 9 9 10 10 using namespace std; -
libpolys/coeffs/AE.h
r3fec5d0 r3c0710 5 5 #include "si_gmp.h" 6 6 7 #ifdef SINGULAR_4_ 17 #ifdef SINGULAR_4_2 8 8 9 9 class int_poly // Klasse von int_polynomen mit Typ (Grad, Koeffizienten ganzzahlig) -
libpolys/coeffs/AEQ.cc
r3fec5d0 r3c0710 6 6 #include <stdio.h> 7 7 #include <math.h> 8 #ifdef SINGULAR_4_ 18 #ifdef SINGULAR_4_2 9 9 10 10 using namespace std; -
libpolys/coeffs/AEQ.h
r3fec5d0 r3c0710 5 5 #include "si_gmp.h" 6 6 7 #ifdef SINGULAR_4_ 17 #ifdef SINGULAR_4_2 8 8 9 9 class Q_poly // Klasse von Q_polynomen mit Typ (Grad, Koeffizienten ganzzahlig) -
libpolys/coeffs/AEp.cc
r3fec5d0 r3c0710 6 6 #include <stdio.h> 7 7 #include <math.h> 8 #ifdef SINGULAR_4_ 18 #ifdef SINGULAR_4_2 9 9 10 10 -
libpolys/coeffs/AEp.h
r3fec5d0 r3c0710 5 5 #include "si_gmp.h" 6 6 7 #ifdef SINGULAR_4_ 17 #ifdef SINGULAR_4_2 8 8 9 9 class p_poly // Klasse von p_polynomen mit Typ (Grad, Koeffizienten ganzzahlig) -
libpolys/coeffs/OPAE.cc
r3fec5d0 r3c0710 22 22 #include <string.h> 23 23 24 #ifdef SINGULAR_4_ 124 #ifdef SINGULAR_4_2 25 25 26 26 BOOLEAN nAECoeffIsEqual (number a, number b, const coeffs r); -
libpolys/coeffs/OPAE.h
r3fec5d0 r3c0710 10 10 struct snumber; typedef struct snumber * number; 11 11 12 #ifdef SINGULAR_4_ 112 #ifdef SINGULAR_4_2 13 13 BOOLEAN n_AEInitChar(coeffs , void *); 14 14 #endif -
libpolys/coeffs/OPAEQ.cc
r3fec5d0 r3c0710 9 9 #include <misc/auxiliary.h> 10 10 11 #ifdef SINGULAR_4_ 111 #ifdef SINGULAR_4_2 12 12 13 13 #include <omalloc/omalloc.h> -
libpolys/coeffs/OPAEQ.h
r3fec5d0 r3c0710 9 9 struct snumber; typedef struct snumber * number; 10 10 11 #ifdef SINGULAR_4_ 111 #ifdef SINGULAR_4_2 12 12 BOOLEAN n_QAEInitChar(coeffs , void *); 13 13 #endif -
libpolys/coeffs/OPAEp.cc
r3fec5d0 r3c0710 9 9 #include <misc/auxiliary.h> 10 10 11 #ifdef SINGULAR_4_ 111 #ifdef SINGULAR_4_2 12 12 13 13 #include <omalloc/omalloc.h> -
libpolys/coeffs/OPAEp.h
r3fec5d0 r3c0710 8 8 9 9 struct n_Procs_s; typedef struct n_Procs_s *coeffs; 10 struct snumber; typedef struct snumber * number;11 10 12 #ifdef SINGULAR_4_ 111 #ifdef SINGULAR_4_2 13 12 BOOLEAN n_pAEInitChar(coeffs , void *); 14 13 #endif -
libpolys/coeffs/flintcf_Q.cc
r3fec5d0 r3c0710 9 9 #include <misc/auxiliary.h> 10 10 11 #ifdef SINGULAR_4_112 11 #ifdef HAVE_FLINT 13 12 … … 635 634 } 636 635 #endif 637 #endif -
libpolys/coeffs/flintcf_Q.h
r3fec5d0 r3c0710 11 11 12 12 #include <misc/auxiliary.h> 13 #ifdef SINGULAR_4_114 13 #ifdef HAVE_FLINT 15 14 BOOLEAN flintQ_InitChar(coeffs cf, void * infoStruct); 16 #endif17 15 #endif 18 16 -
libpolys/coeffs/flintcf_Zn.cc
r3fec5d0 r3c0710 9 9 #include <misc/auxiliary.h> 10 10 11 #ifdef SINGULAR_4_112 11 #ifdef HAVE_FLINT 13 12 … … 543 542 } 544 543 #endif 545 #endif -
libpolys/coeffs/flintcf_Zn.h
r3fec5d0 r3c0710 13 13 #include <misc/auxiliary.h> 14 14 15 #ifdef SINGULAR_4_116 15 #ifdef HAVE_FLINT 17 16 typedef struct … … 22 21 BOOLEAN flintZn_InitChar(coeffs cf, void * infoStruct); 23 22 #endif 24 #endif25 23 26 24 #endif -
libpolys/coeffs/gnumpfl.cc
r3fec5d0 r3c0710 441 441 { 442 442 static char ngfCoeffName_buf[27]; 443 #ifdef SINGULAR_4_1444 snprintf(ngfCoeffName_buf,27,"real,%d,%d",r->float_len,r->float_len2);445 #else446 443 snprintf(ngfCoeffName_buf,27,"RR(%d,%d)",r->float_len,r->float_len2); 447 #endif448 444 return ngfCoeffName_buf; 449 445 } -
libpolys/coeffs/longrat.cc
r3fec5d0 r3c0710 3155 3155 { 3156 3156 //return omStrDup(nlCoeffName(r)); 3157 #ifdef SINGULAR_4_13158 3157 if (r->cfDiv==nlDiv) return omStrDup("QQ"); 3159 3158 else return omStrDup("ZZ"); 3160 #else3161 if (r->cfDiv==nlDiv) return omStrDup("0");3162 else return omStrDup("integer");3163 #endif3164 3159 } 3165 3160 -
libpolys/coeffs/modulop.cc
r3fec5d0 r3c0710 471 471 { 472 472 static char npCoeffName_buf[15]; 473 #ifdef SINGULAR_4_1474 473 snprintf(npCoeffName_buf,14,"ZZ/%d",cf->ch); 475 #else476 snprintf(npCoeffName_buf,11,"%d",cf->ch);477 #endif478 474 return npCoeffName_buf; 479 475 } -
libpolys/coeffs/rintegers.cc
r3fec5d0 r3c0710 461 461 void nrzCoeffWrite (const coeffs, BOOLEAN /*details*/) 462 462 { 463 #ifdef SINGULAR_4_1464 463 PrintS("// coeff. ring is : ZZ\n"); 465 #else466 PrintS("// coeff. ring is : integer\n");467 #endif468 464 } 469 465 470 466 static char* nrzCoeffName(const coeffs) 471 467 { 472 #ifdef SINGULAR_4_1473 468 return (char*)"ZZ"; 474 #else475 return (char*)"integer";476 #endif477 469 } 478 470 -
libpolys/coeffs/rmodulo2m.cc
r3fec5d0 r3c0710 52 52 { 53 53 static char n2mCoeffName_buf[22]; 54 #ifdef SINGULAR_4_155 54 snprintf(n2mCoeffName_buf,21,"ZZ/(2^%lu)",cf->modExponent); 56 #else57 snprintf(n2mCoeffName_buf,21,"integer,2,%lu",cf->modExponent);58 #endif59 55 return n2mCoeffName_buf; 60 56 } … … 81 77 // r->modExponent <=bitsize(long) 82 78 char* s = (char*) omAlloc(11+11); 83 #ifdef SINGULAR_4_184 79 sprintf(s,"ZZ/(2^%lu)",r->modExponent); 85 #else86 sprintf(s,"integer,2,%lu",r->modExponent);87 #endif88 80 return s; 89 81 } -
libpolys/coeffs/rmodulon.cc
r3fec5d0 r3c0710 98 98 char* b = (char*) omAlloc(l); 99 99 b= mpz_get_str (b, 10, r->modBase); 100 #ifdef SINGULAR_4_1101 100 char* s = (char*) omAlloc(15+l); 102 101 if (nCoeff_is_Ring_ModN(r)) sprintf(s,"ZZ/%s",b); 103 102 else /*if (nCoeff_is_Ring_PtoM(r))*/ sprintf(s,"ZZ/(bigint(%s)^%lu)",b,r->modExponent); 104 #else105 char* s = (char*) omAlloc(7+2+10+l);106 if (nCoeff_is_Ring_ModN(r)) sprintf(s,"integer,%s",b);107 else /*if (nCoeff_is_Ring_PtoM(r))*/ sprintf(s,"integer,%s^%lu",b,r->modExponent);108 #endif109 103 omFreeSize(b,l); 110 104 return s; -
libpolys/misc/auxiliary.h
r3fec5d0 r3c0710 36 36 #define SI_BIGINT_VARIANT 1 37 37 38 /* preparation for versio 4.1.0: cring (4_1), cpoly, cnumber, cmatrix (4_2) */ 39 #undef SINGULAR_4_1 38 /* preparation for versio 4.2.0: cpoly, cnumber, cmatrix (4_2) */ 40 39 #undef SINGULAR_4_2 41 40 -
libpolys/polys/ext_fields/algext.cc
r3fec5d0 r3c0710 1506 1506 template class IAccessor<snumber*>; 1507 1507 1508 #ifndef SINGULAR_4_11509 BOOLEAN n2pInitChar(coeffs, void *)1510 { return 1; }1511 #endif1512 #ifdef SINGULAR_4_11513 1508 /* --------------------------------------------------------------------*/ 1514 1509 /**************************************** … … 1779 1774 return FALSE; 1780 1775 } 1781 #endif -
libpolys/polys/flintconv.h
r3fec5d0 r3c0710 20 20 * REQUIREMENTS: 21 21 * - agreement about the interface to LLL 22 * - SINGULAR_4_123 22 * - FLINT providing LLL 24 23 * (none of the above is currently true, but all of them is required)
Note: See TracChangeset
for help on using the changeset viewer.